Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to cut a file from one location  RSS feed

 
kajal mukergi
Ranch Hand
Posts: 102
  • 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
Posts: 53734
127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.io.File#delete()?
 
kajal mukergi
Ranch Hand
Posts: 102
  • 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
Posts: 53734
127
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!