public class copy {
publiac static void main(String[] ages) throws IOException{
String o="D:/helloworld";
File file1=new File("D:/HW.java");
FileReader re = new FileReader(o);
FileWriter wr=new FileWriter(file1);
char [] = new char [10];
re.read(a);
wr,write(a)
re.close();
twr.close();
System.out.println("成功复制");
}
}