title: Read File in Java, output the first comma delimited String
body: <p>I want to extract the first <code>String</code> in a file using the delimiter ",".
  Why does this code generate a number of lines greater than one?</p>
  
  <pre><code>public static void main(String[] args) {
      BufferedReader in = null;
      try {
          in = new BufferedReader(new FileReader("irisAfter.txt"));
          String read = null;
          while ((read = in.readLine()) != null) {
              read = in.readLine();
              String[] splited = read.split(",");
              for (int i =0; i&lt;splited.length;i++) {
                  System.out.println(splited[0]);
              } 
          }
      } catch (IOException e) {
              System.out.println("There was a problem: " + e);
              e.printStackTrace();
      } finally {
          try {
              in.close();
          } catch (Exception e) { e.printStackTrace(); }
      }
  }
  </code></pre>