![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IO流
文章平均质量分 86
神州上仙,寸劲开天
这个作者很懒,什么都没留下…
展开
-
IO流和集合
IO流—>功能流 Buffered缓冲流 Buffered缓冲流 -----> 功能流(节点流) 作用:提高节点流的读写效率,增强性能 分类 字节缓冲流: 字节输入缓冲流 BufferedInputStream 字节输出缓冲流 BufferedOutputStream 注意:没有新增方法,可以使用多态构建流 字符缓冲流: 字符输入缓冲流 BufferedReader 字符输出缓冲流 BufferedWriter 新增功能: 字符输入缓冲流:String read原创 2021-06-16 20:23:15 · 124 阅读 · 0 评论 -
IO流基础
IO流基础 File类 File 文件或者目录的抽象表现形式 构造器 File(String pathname) ;()内为文件路径名,可能存在,也可能不存在 File file1 = new File("D://"); File file2 = new File("D:/AAA/BBB"); File file3 = new File("D:\\test.txt"); 注意:单个\为转义字符 File(String parent, String child); 从父路径名字符串和子路径名字符串创建新的原创 2021-06-15 20:54:14 · 78 阅读 · 0 评论