title: Reading chunks of a text file with a Java 8 Stream
body: <p>Java 8 has a way to create a Stream from lines of a file. In this case, foreach will step through lines. I have a text file with following format..</p>
  
  <pre><code>bunch of lines with text
  $$$$
  bunch of lines with text
  $$$$
  </code></pre>
  
  <p>I need to get each set of lines that goes before <code>$$$$</code> into a single element in the Stream.</p>
  
  <p>In other words, I need a Stream of Strings. Each string contains the content that goes before <code>$$$$</code>.</p>
  
  <p>What is the best way (with minimum overhead) to do this?</p>