This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to cut a file from one location

 
kajal mukergi
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I want to read a file from a location , that is when i read the file from a location ,after reading that file has to removed completely from that location.

Thanks and Regards
Kajal
 
Campbell Ritchie
Sheriff
Pie
Posts: 47281
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.io.File#delete()?
 
kajal mukergi
Ranch Hand
Posts: 102
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks friend,

yes friend i know that method.

My requirement is ,

my file is in remote place which is .xml file and i have to read that file from that location and copy that exact file in other file

can you suggest me how can i do that...
 
Campbell Ritchie
Sheriff
Pie
Posts: 47281
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not what you said originally . . .

If you have access, you can read the entire file and write it elsewhere with the methods of the java.util.Scanner and java.util.Formatter classes.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic