Using Java to Copy Files
Hello,
We have a requirement to copy and move files and we are trying to create an App Engine that would complete this process. I have found Java code to move a file however I have not found any Java code that copies and replaces a file successfully. Has anyone used Java to copy a file? Can you please provide any code examples that you have used? I have listed the Java code for move however I am looking how to copy and replace a file.
Local JavaObject &f = CreateJavaObject(“java.io.File”, “/the/path/to/the/file.txt”);
Local JavaObject &target = CreateJavaObject(“java.io.File”, “/the/target/file.txt”);