title: Using useDelimiter() with a text file
body: <p>I'm trying to use useDelimiters() to split up a text file by a certain delimiter instead of by each new line. For example in the following code I have this text file input which I want to split into two at the full stop:</p>
  
  <pre><code>hellothere
  stop.hereok
  asdf
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>public static void main(String[] args) throws FileNotFoundException {
      File text = new File("test.txt");
      Scanner filein = new Scanner(text).useDelimiter("\\.");
      System.out.println(filein.next());
      System.out.println(filein.next());
  }   
  </code></pre>
  
  <p>My output:</p>
  
  <pre><code>hellothere
  stop
  hereok
  asdf
  </code></pre>
  
  <p>Expected output:</p>
  
  <pre><code>hellotherestop
  hereokasdf
  </code></pre>
  
  <p>Anyone know the issue?</p>