📅  最后修改于: 2022-03-11 14:52:22.861000             🧑  作者: Mango
var source = new File("src/resources/bugs.txt");
var dest = new File("src/resources/bugs2.txt");
Files.copy(source.toPath(), dest.toPath(),
StandardCopyOption.REPLACE_EXISTING);