PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

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”);

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center