title: bufferedReader.readLine() will never equal null
body: <p>I am writing some code that will pull a name and id from a text file. To do this I am using a while loop. It appears that the while loop condition is always true and the program never breaks out of the while loop. The code is shown below Any help will be appreciated. Thanks.</p>
  
  <pre><code>while((line = br.readLine()) != null) {
              line = br.readLine();
              endOfFirstName = line.indexOf(",");
              first_name = line.substring(0, endOfFirstName);
              endOfLastName = line.indexOf(" ");
              last_name = line.substring(endOfFirstName + 1, endOfLastName);
              id = line.substring(endOfLastName + 1);
          }
  </code></pre>