• Post Reply Bookmark Topic Watch Topic
  • New Topic

copying file from one folder and paste it in other folder  RSS feed

 
naresh kumar mallala
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one send me the code for copying file from one location in my system and paste that to another location in another folder.....thank you
 
Rob Spoor
Sheriff
Posts: 20898
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are NotACodeMill. I suggest you start at http://www.coderanch.com/how-to/java/JavaIoFaq, I'm sure you'll find some useful tips there. Hint: FileInputStream, FileOutputStream, FileChannel - those are the classes you should look at.
 
naresh kumar mallala
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya...thank you....for your info!
 
Greg Charles
Sheriff
Posts: 3014
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We had a similar question recently here. My advice was to check out the Apache Commons IO package, and its FileUtilities class.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!