title: Reading next line InputStream Java
body: <p>I have an InputStream that would read from a text file. I noticed that the input stream doesn't read from a blank next line. </p>
  
  <p>Sample text file:</p>
  
  <pre><code>[This is
  
  A test file
  
  Here.]
  </code></pre>
  
  <p>The code:</p>
  
  <pre><code>while ((str = br.readLine())!= null) {
      System.out.println(str);
  }
  </code></pre>
  
  <p>Some text files would have multiple break lines in between. How do I get the input stream to accept break lines ?</p>
  
  <p>As can be seen from the sample text file, '[This is' is followed by an empty line and then followed subsequently by 'A test file'. How do I read the empty line in between the two sets of strings ? (That is my definition of line break / break line)</p>