利用System.in、InputStreamReader和BufferedWriter实现读取键盘输入的数据,使用PrintWriter和System.out将读取到的数据保存在文件同时输出到显示器
```java
package work;
import java.io.*;
public class PrintTest {
public static void main(String[] args){
File file = new File("abc.txt");
PrintTest test = new PrintTest();
test.in(file);
test.out(file.
原创
2020-11-24 21:08:06 ·
508 阅读 ·
1 评论