This might also be a long shot, but why is one of your File objects static and the other isn't?
Type: Posts; User: javapenguin
This might also be a long shot, but why is one of your File objects static and the other isn't?
Hmmmmm....file has a method called renameTo(File dest).
If you're renaming it, it's going somewhere else in memory.
File also has a method called delete().
I don't see why you can't do one...