import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Copy {
public static void copyFile(String oldPath,String newPath){
File oldFile = new File(oldPath);
if(!oldFile.exists()){
System.out.println("要复制的文件路径不正确");
return;
}
File newFile = new File(newPath);
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class Copy {
public static void copyFile(String oldPath,String newPath){
File oldFile = new File(oldPath);
if(!oldFile.exists()){
System.out.println("要复制的文件路径不正确");
return;
}
File newFile = new File(newPath);