Im trying to read a file in Java Eclipse. The system cant seem to find the file.
Here is my code:
import java.util.Scanner;
import java.io.*;
public class whyDo {
public static void main(String[] args) throws IOException {
Scanner input = new Scanner(new File("c:\\Users\\Vanessa\\Downloads\\CompLet\\CompLet\\sales\\austin.txt"));
System.out.println(input);
// TODO Auto-generated method stub
}
}
When I run this code I get:
Exception in thread "main" java.io.FileNotFoundException: c:\Users\Vanessa\Downloads\CompLet\CompLet\sales\austin.txt (The system cannot find the path specified)
Please help. Thanks to everybody in advance.