This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes moving files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "moving files" Watch "moving files" New topic
Author

moving files

Dalibor Toth
Ranch Hand

Joined: Jul 16, 2001
Posts: 38
How can I move files from one directory to another?
Thanks!
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

Have a play with java.io.File.renameTo(File newName)
DOM
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: moving files
 
Similar Threads
Need to Convert Documents to HTML
WA #1.....word association
Componentized logic in views - what to use.
ClassNotFoundException in Jsp Precompilation
How to create a war file.