import java
.io
.BufferedInputStream
;
import java
.io
.FileInputStream
;
import java
.io
.IOException
;
public class Test {
public static void main(String
[] args
) throws IOException
{
BufferedInputStream bis
=new BufferedInputStream(new FileInputStream("bos.txt"));
int by
=0;
while ((by
=bis
.read())!=-1){
System
.out
.println((char)by
);
}
System
.out
.println("--------");
byte[] bys
=new byte[1024];
int len
=0;
while ((len
=bis
.read(bys
))!=-1){
System
.out
.println(new String(bys
,0,len
));
}
bis
.close();
}
}
转载请注明原文地址: https://lol.8miu.com/read-14174.html