title: Reading file error: File Not Found
body: <p>I have the follwing</p>
  
  <pre><code> Scanner scanner = new Scanner(new File("hello.txt"));
     while(scanner.hasNextInt()){
         int i = scanner.nextInt();
         System.out.println(i);
      }
  </code></pre>
  
  <p>Why do I get an error when I run it? It says <code>file not found (The system cannot find the files specificed)</code> in <code>java.io.fileinputstream</code>. But the file does exist.</p>