public static void main(String[] args) throws Exception { Files.copy(Paths.get("file/text.txt"), new FileOutputStream("nio.txt")); }
public static void main(String[] args) throws Exception { Files.copy(Paths.get("file/text.txt"), new FileOutputStream("nio.txt")); }