title: Java : read file and stop at new line context
body: <p>For example, given a txt file:</p>
  
  <pre><code>words
  123
  words:123
  words:324
  
  words
  123
  words:123
  words:324
  </code></pre>
  
  <p>Is it possible to do this? </p>
  
  <pre><code>FileReader fr = new FileReader(//the txt file mentioned above); 
  Scanner s = new Scanner(fr).useDelimiter(//something which equal to the empty string after each venue);
  while (s.hasNext()){
          String paragraph = s.next();
          break;
      }
  </code></pre>
  
  <p>Is it possible to read just up to a blank line? So paragraph would be equal to :</p>
  
  <pre><code>words
  123
  words:123
  words:324
  </code></pre>