import java.io.*;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class print {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
String file = "exercise1_6.dat";
String file1="exercise1_61.dat";
BufferedReader reader= new BufferedReader(new FileReader(file));
FileOutputStream writerStream = new FileOutputStream(file1);
BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(writerStream, "UTF-8"));
while (reader.read()!=-1) {
writer.write((char)reader.read());
}
writer.close();
System.out.println("exercise1_6.dat大小:"+file.length()+"\nexercise1_61.dat大小:"+file1.length());
}
}