I am trying to read a file from my desktop, but the following code always throws a FileNotFoundException
:
try {
Scanner fileIn = new Scanner(new FileReader("project.csv"));
} catch (FileNotFoundException e) {
// The exception is always thrown.
}
How do I fix this?