E_FileInputStream

来源:互联网 发布:2×2矩阵张量积 编辑:程序博客网 时间:2024/06/05 11:04
import java.io.*;class E_FileInputStream{public static void main(String args[]){String s="e:\\java\\E_super.txt";try{FileInputStream fis=new FileInputStream(s);int ch=fis.read();while (ch!=1){System.out.print((char) ch);ch=fis.read();}    fis.close();}catch(FileNotFoundException e){System.out.println("oooooooooooooo");}catch(IOException e){System.out.println("pppppppppppppp");}}}