title: Detect first line of text file separately?
body: <p>I am designing a program that will load a text file into different media file classes (Media > Audio > mp3, Media > Video > Avi, etc).
  Now the first line of my text file is how many files there are in total, as in</p>
  
  <pre><code>    3
      exmaple.mp3,fawg,gseges
      test.gif,wfwa,rgeg 
      ayylmao.avi,awf,gesg
  </code></pre>
  
  <p>Now that is what is in my text file, I want to first get the first line separately, then loop through the rest of the files.
  Now I understand I can simply count how many files are in by using an int that grows as I loop but I want it clear in the file aswell, and I'm not sure how to go about this.</p>
  
  <pre><code>static public Media[] importMedia(String fileName)
      {
          try {
              BufferedReader reader = new BufferedReader(new FileReader(fileName));
              String line = reader.readLine();
              while(line != null)
              {
                  //Get the first line of the text file seperatly? (Then maybe remove it? idk)
                  //Split string, create a temp media file and add it to a list for the rest of the lines
              }
              //String[] split = s.next().split(",");
          } catch (Exception ex) { System.out.println(ex.getMessage()); }
          return null;
      }
  </code></pre>
  
  <p>I hope my question is clear, if it <strong>TL;DR</strong> I want to get the first line of a text file separately, then the rest Id like to loop through.</p>