I want to copy a file from one location to another location in Java. What is the best way to do this? Here is what I have so far: import java.io ... ... <看更多>
IOException; import java.nio.channels.FileChannel; public class FileCopier { public static void main(String[] args) { File sourceFile = new ... ... <看更多>