Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Copying a file form one location to another location

 
ms raaghu
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all ,
Can i know how do i copy a file from one location say c:/abc to another location d:/abc
please let me know how it can b done???

Thanks
 
Aneesh Vijendran
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Commons File Utils.
org.apache.commons.io.FileUtils

Most of your I/O headaches could be solved by this.

Cheers
Aneesh
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic