input file cannot be found
<p>I am just messing around with reading input files with java until I got stumped at the most basic of steps... finding the input file!</p>

<p>The input.txt file is in the same directory as my class file that is calling it yet eclipse still gives me an error that it cant be found:</p>

<p>"Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
Unhandled exception type FileNotFoundException"</p>

<p>My code:</p>

<pre><code>package pa;
import java.util.Scanner; 

public class Project {
 public static void main(String[] args) {
    java.io.File file = new java.io.File("input.txt");
    System.out.println(file.getAbsolutePath());
    Scanner input = new Scanner(file);
 }
}
</code></pre>

<p>input.txt is in the same package, same folder and everything. I'm confused :(</p>
