摘要: FileInputStream fis = new FileInputStream ("test.txt");//创建读取管道 byte[] arr = new byte[2]; //创建字节数组 int a = fis.read(arr); //将文件上的字节读取到字节数组中(a为读取到的有效字节 阅读全文
posted @ 2020-06-03 21:58 一块 阅读(846) 评论(0) 推荐(0) 编辑