package top.qaqaq.java.P619;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
/**
* @author RichieZhang
* @create 2022-10-30 下午 9:27
*/
public class FileUtilsTest {
public static void main(String[] args) {
File srcFile = new File("Code\\爱情与友情.jpg");
File destFile = new File("Code\\爱情与友情7.jpg");
try {
FileUtils.copyFile(srcFile,destFile);
} catch (IOException e) {
e.printStackTrace();
}
}
}
暂无评论