• Post Reply Bookmark Topic Watch Topic
  • New Topic

File and Directory deletion deletion

 
Dhananjay Kumar Singh
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am using weblogic and java 1.3, and i have written a code for dynamically generating a directory and files and deleting the files and directory on time of logging out from my application.

While doing so, i am getting inconsistence result, like some time its deleting the file or some time its not.
In some scenario, while logging off, its deleting all the files and then directory, but after that, if I again login without closing the weblogic and performing the same task, its deleting few files and not all.

I will thankful, if anyone will give his thought on this and tell me how can I get the consistent result.

Thanks and regards,
Dhananjay
 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually if a file cannot be deleted it's still in use. Do you close all your FileInputStreams, FileOutputStreams, FileReaders and FileWriters?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!