我一生都无法弄清楚这个程序有什么问题:
import java.io.*;
public class EncyptionAssignment
{
public static void main (String[] args) throws IOException
{
String line;
BufferedReader in;
in = new BufferedReader(new FileReader("notepad encypt.me.txt"));
line = in.readLine();
while(line != null)
{
System.out.println(line);
line = in.readLine();
}
System.out.println(line);
}
}
错误消息说找不到文件,但我知道该文件已经存在。我需要将文件保存在特殊文件夹中吗?