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()); } } }
添加回答
举报
0/150
提交
取消