

Now file.exists() returns true, but when I try to put it in the Scanner, it throws the FileNotFoundException Does anyone have any idea why this may be occurring?ĮDIT: It was actually pointing to a directory up, however, I have fixed that problem. I changed the permissions for read and write for everyone, but it still did not work and it still keeps throwing the error. However, this throws a FileNotFoundException, but I have checked over and over again to see if the file exists in the current folder, and after that, I figured that it had to do something with the permissions. The instructor said to use this syntax Scanner scores = new Scanner(new File("scores.dat"))

While summing and averaging is easy, I am having problems with the file reading. I have an assignment for my CS class where it says to read a file with several test scores and asks me to sum and average them.
