标签:fileinput row while src except input stat bsp main
public static void main(String [] args) throws Exception{
//创建文件输入流对象
  File f=new File("src/main2dishizhang/java.txt");
  InputStream  is=new FileInputStream(f);
//循环读数据
  int b;
  while((b=is.read())!=-1){
   System.out.println((char)b);
  }
 }
标签:fileinput row while src except input stat bsp main
原文地址:http://www.cnblogs.com/xuling123/p/6822059.html