- BufferedReader br=
- new BufferedReader(new InputStreamReader(System.in));
复制代码- BufferedWriter bd=
- new BufferedWriter(new OutputStreamWriter(new FileOutputStream("out.txt")));
复制代码
这两句代码第一句能理解,将字节流转为字符流,用BufferReader接收,第二句就不懂了,不是将字符流转为字节流吗?为什么用BufferedWriter来接收了? |
|