}
8. import java.io.*;
class DisplayTextFile{
public static void main(String args[]) throws IOException{
int ch;
FileReader fin=null; if(args.length<1){ } try{ } finally{ }
System.out.println();
fin.close();
fin=new FileReader(args[0]); while((ch=fin.read())!=-1) System.out.print((char)ch);
System.out.println(“文件未找到!”); return;
System.out.println(“文件读取错误”);
System.out.println(“用法:DisplayTextFile 文件名”); return;
}
}
}catch(FileNotFoundException e){
}catch(IOException e){
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库java参考题库(3)在线全文阅读。
相关推荐: