import com.sun.org.apache.bcel.internal.generic.NEW;
import java.io.*;
public class HTIO {
public static void main(String[] args) throws IOException{
File srcFile = new File("C:\\Users\\Administrator\\Desktop\\ht.txt");
File desFile = new File("C:\\Users\\Administrator\\Desktop\\copy.txt");
FileReader fr = new FileReader(srcFile);
FileWriter fw = new FileWriter(desFile);
BufferedReader br = new BufferedReader(fr);
BufferedWriter bw = new BufferedWriter(fw);
char[] buffer = new char[124];
int num;
while ((num = br.read(buffer))!=-1){
bw.write(buffer);
}
br.close();
bw.close();
}
}