is there a way to delete or move a file to another directory after reading it by an application.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sachu_mexon
Posted On:   Friday, June 14, 2002 01:08 PM

can anyone tell me how to make this work.


i would like to make an application read a file from a directory and after doing some operations, i want to remove that partcular file from that directory 'cox i dont want my application to pick the same file again .


I tried the following but the file is still present in the directory.


boolean success = (new File("filename")).delete();


if (!success) {


// Deletion failed


}

About | Sitemap | Contact