title: Check if readLine is blank, but don't read a line
body: <p>I have a while loop that performs while readLine != "". The problem is, it reads the line and moves on to the next one, which is not what I want. What I need is either for it to test whether the line is blank without moving on to the next line, or for it to go back to where it was before reading it.</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>while (fileReader.readLine() != "") {
       String readLine = fileReader.readLine();
  }
  </code></pre>