title: Scanner.hasNext() returns false
body: <p>I have directory with many files in it - each with over 800 lines in it. Hovewer, when I try to read it using Scanner, it seems empty.</p>
  
  <pre><code>File f1 = new File("data/cityDistances/a.txt"),
       f2 = new File("data/cityDistances/b.txt");
  System.out.println(f1.exists() &amp;&amp; f2.exists()); //return true
  System.out.println(f1.getTotalSpace() &gt; 0 &amp;&amp; f2.getTotalSpace() &gt; 0); //return true
  Scanner in = new Scanner(f1);
  System.out.println(in.hasNext()); // return false;
  System.out.println(in.hasNextLine()); //return false;
  </code></pre>
  
  <p>Why can it behave like that?</p>
  
  <hr>
  
  <p>I've managed to do it using <code>BufferedReader</code>. Nonetheless, it seems even more strange that <code>BufferedReader</code> works and <code>Scanner</code> didn't.</p>