I'm trying to read a file from

```
public static void printLines(String doc){

    Scanner input = null;
    input = new Scanner(doc + ".txt")); 

    while(input.hasNext()){

        String nextLine = input.nextLine();
        System.out.println(nextLine);

    }

    input.close;

}

```

The code above is from a method that takes in String doc as a parameter, and prints out every line. In my main, I used a try catch block to catch a FileNotFoundException. However, when I try running the program, it hits FileNotFoundException all the time. 

I'm using Eclipse and the text file and java file are both in the same "Java Project". Is there any reason why my method can't read the text file? Please help!