• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to cut a file from one location

 
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
Pie
Posts: 49472
64
  • 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
Pie
Posts: 49472
64
  • 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