Forgive the double posting on this message, if it occurs.
I need help with some code..
I want to move a file (CVS) to another folder.
The code that I am using is this.
File file = new File("Summary_" + dateVar + ".csv");
File dir = new File(propStuff.getProperty("recordDir")); // value is
written C:\\Workspace\\Reports\\
boolean success = file.renameTo(new File(dir, file.getName()));
If (!success) {
// Error text
}
This keeps producing an error. The code is consistent on several websites
that I have found when googling
on java: move a file. Any suggestions on how to get this working?
Jef