Public static void main(string[] args){
FileInputStream fis = new FileInputStream("e.txt");
ByteArrayOutputStream baos = new ByteArrayOutputStream(); //在内存中创建了可以增长的内存数组
int b ;
while((b = fis.read() != -1){
baos.write(b); //将读取到的数据逐个写到内存中
}
byte[] arr = baos.toByteArray(); //将缓冲区的数据全部获取出来,并赋值给arr数组
syso(new String(arr)); //字节数组转换为字符串
fis.close();
}