title: Joining two mp3 files into one
body: <p>I have this code to read bytes to another file. 
  But I'm not able to concatenate two mp3 files into one.
  Am I missing something?</p>
  
  <pre><code>public static void main(String[] args) {
    String strFileName = ("D:/Music/Assb/Love.mp3");
                  BufferedOutputStream bos = null;
  
                  try
                  {
                          //create an object of FileOutputStream
                          FileOutputStream fos = new FileOutputStream(new File(strFileName));
  
                          //create an object of BufferedOutputStream
                          bos = new BufferedOutputStream(fos);
  
                          String str = "D:/Music/Assembled/Heart001.mp3" 
                              + "D:/Music/Assembled/Heart002.mp3";
  
                          /*
                           * To write byte array to file use,
                           * public void write(byte[] b) method of BufferedOutputStream
                           * class.
                           */
                           System.out.println("Writing byte array to file");
  
                           bos.write(str.getBytes());
  
                          System.out.println("File written");
  </code></pre>