First off, you should be calling Scanner's nextLine() method not the next() method to be sure that you're handling the end-of-line (EOL) token appropriately. Next, if you get a run-time exception it is most helpful if you post the full exception and let us know which line is throwing the exception. But most important I agree that you're likely not looking in the right place for the file. You should either be entering the full path to the file, starting with the drive letter, or else entering the path to the file relative to the user.dir. To find out what the user directory is, somewhere at the top of your main method put in the line
System.out.println(System.getProperty("user.dir"));