import java.io.*;
public class E7_1{
public static void main(String args[ ]){
int b;
try {
FileInputStream fis=new FileInputStream("D:\\test.txt");
while ( (b= fis.read()) !=-1)
System.out.print((char)b);
fis.close();
}
catch (Exception e) {
system.out.println("出错了,原因是:");
system.out.println (e.toString());
}
}
}
相关分类