Copy and Rename A File

I have a file(phonenumbers.txt) which when I'm done with in my program I want to rename it to the system date and time and then place it in a different folder. Can anybody suggest how to do this?
[203 byte] By [paul_carrona] at [2007-11-27 8:50:04]
# 1
Have a look at the renameTo(...) method from the java.io.File class.
prometheuzza at 2007-7-12 21:00:30 > top of Java-index,Java Essentials,New To Java...