摘要: Reader FileReader BufferedReader 自己实现readLine方法,默认的是每次读取一行,但不包括\r\n。自己实现一个包括的 阅读全文
posted @ 2016-07-11 18:25 微风星宇 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1 package file; 2 3 import java.io.File; 4 import java.io.FileWriter; 5 import java.io.IOException; 6 7 public class Demo6 { 8 public static void main(String[] args) throws IOExceptio... 阅读全文
posted @ 2016-07-11 17:43 微风星宇 阅读(317) 评论(0) 推荐(0) 编辑
摘要: Reader 字符流的基类,抽象类 FileReader 读取文件的字符流 阅读全文
posted @ 2016-07-11 17:32 微风星宇 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1 package file; 2 3 import java.io.BufferedOutputStream; 4 import java.io.File; 5 import java.io.FileOutputStream; 6 import java.io.IOException; 7 8 public class Demo4 { 9 public sta... 阅读全文
posted @ 2016-07-11 16:16 微风星宇 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 1 package file; 2 3 import java.io.BufferedInputStream; 4 import java.io.File; 5 import java.io.FileInputStream; 6 import java.io.IOException; 7 8 public class Demo3 { 9 public stati... 阅读全文
posted @ 2016-07-11 16:04 微风星宇 阅读(403) 评论(0) 推荐(0) 编辑
摘要: InputStream 基类,抽象类 FileInputStream 读取文件的字节流 BufferedInputStream 缓冲输入字符流 阅读全文
posted @ 2016-07-11 15:40 微风星宇 阅读(220) 评论(0) 推荐(0) 编辑
摘要: OutputStream: FileOutputStream BufferedOutputStream 缓冲输出流 阅读全文
posted @ 2016-07-11 15:10 微风星宇 阅读(152) 评论(0) 推荐(0) 编辑