package TestIO;
import java.io.*;
public class Test01 {
public static void main(String[] args) throws Exception {
////内容是:abcdef
String filepath= "D:\\test.txt";
FileInputStream fis=null;
fis = new FileInputStream(filepath);
//第一种循环
// while(true){
// int temp = fis.read();
// if(temp == -1) break;
// System.out.println("temp--->"+temp);
// }
//第二种d
int temp=0;
while((temp =fis.read()) != -1){
System.out.println(temp);
}
fis.close();
}
}