Я пытаюсь прочитать файл в Java Eclipse. Система не может найти файл.
Вот мой код:
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
}
}
Когда я запускаю этот код, я получаю:
Exception in thread "main" java.io.FileNotFoundException: c:\Users\Vanessa\Downloads\CompLet\CompLet\sales\austin.txt (The system cannot find the path specified)
Пожалуйста, помогите. Спасибо всем заранее.