*
The moose likes Beginning Java and the fly likes How to cut a file from one location Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to cut a file from one location" Watch "How to cut a file from one location" New topic
Author

How to cut a file from one location

kajal mukergi
Ranch Hand

Joined: Mar 22, 2007
Posts: 102
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

Joined: Oct 13, 2005
Posts: 38107
    
  22
java.io.File#delete()?
kajal mukergi
Ranch Hand

Joined: Mar 22, 2007
Posts: 102
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

Joined: Oct 13, 2005
Posts: 38107
    
  22
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
 
subject: How to cut a file from one location
 
Similar Threads
Read and Write
opening file in java
Properties file
Database Location - Bodgitt & Scarper
OutOfMemoryError: Java heap space error when exporting more than 65MB file