title: Read a text file until EOL in Java
body: <p>I am trying to read a text file which has - </p>
  
  <pre><code>hello James!
  How are you today!
  </code></pre>
  
  <p>I want to read the each character in the string till i find EOL character.As i am using windows where i have /n/r which represents EOL character.How can i write a condition to go through all the characters of the string and print them one by one till it reaches EOL(/n/r).</p>
  
  <pre><code>int readedValue;
  
  do
  {   
      while((readedValue = bufferReader.read()) != 10)
     {
      //readedValue = bufferReader.read();
      char ch = (char) readedValue;
      System.out.print(ch);
     } 
  
  }
  while ((readedValue = bufferReader.read()) != -1);
  </code></pre>
  
  <p>when i read the file now , i get out put as hello James!ow are you today!</p>
  
  <p>I am not getting 'H'ow in How. What can i alter this to get the complete text?</p>