public class IOStreamDemo {
public static void main(String [] args)throws IOException{
BufferedReader in = new BufferedReader(new FileReader("IOStreamDemo.java"));
String s,s2= new String();
while((s = in.readLine())!=null){
s2=s+s2+"\n";
}
in.close();
}
}
Exception in thread "main" java.io.FileNotFoundException: IOStreamDemo.java (系统找不到指定的文件。)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at java.io.FileReader.<init>(FileReader.java:41)
at text11_07.IOStreamDemo.main(IOStreamDemo.java:9)