package TestIO;
import java.io.*;
/*
*字符型的流, 只能复制纯文本
*/
public class Test01 {
public static void main(String[] args) throws Exception {
//
FileReader fr = new FileReader("C:/Users/张东林/Desktop/2017429.txt");
FileWriter fw = new FileWriter("D:/2017429.txt");
char[] chars = new char[512];
int temp = 0 ;
while ((temp = fr.read(chars)) != -1){
fw.write(chars, 0, temp);
}
//
fw.flush();
//
fr.close();
fw.close();
}
}