FileInputStream fis = new FileInputStream("E:\\Java基础资料\\a.txt");标签:fis,Java,字节,int,System,char,read,读取 From: https://www.cnblogs.com/gagaya2/p/17782526.html
/*int b;
while((b = fis.read()) != -1) {
System.out.print((char)b);
}*/
while (true) {
int b = fis.read();
if(b == -1)
break;
System.out.print((char)b);
}
fis.close();