public class FileInputStreamDome02 {
public static void main(String[] args) throws IOException {
FileInputStream fis =
new FileInputStream(“D:\IDEA\src\JavaHeiMa02\src\字节流ByteStream\字节流读数据\fis.txt”);
byte[] bys = new byte[1024];
int len;
while ((len=fis.read(bys))!=-1){
System.out.println(new String(bys,0,len));
}
fis.close();
}