java的输入输出流与文件操做(2.读入写出及关流)

1.如何读取文件。java 能够一个字节一个字节的读,也能够使用缓冲,一块一块数据的读。spa 通常使用第二种,由于比较快。code @Test public void TestRead() throws IOException { byte buf[] = new byte[1024]; FileInputStream fin = new FileInputStream("E:/tes
相关文章
相关标签/搜索