public static void main(String[] args) throws Exception {
Files.copy(Paths.get("file/text.txt"), new FileOutputStream("nio.txt"));
}
转载于:https://www.cnblogs.com/jiangxifanzhouyudu/p/6726858.html
public static void main(String[] args) throws Exception {
Files.copy(Paths.get("file/text.txt"), new FileOutputStream("nio.txt"));
}
转载于:https://www.cnblogs.com/jiangxifanzhouyudu/p/6726858.html