In my servlet, I am creating files at runtime. These files are stored in the root directory of my servlet container.
I need to clean these files up at some time. I have created a thread to do this within my servlet.
However, I use the myfile.delete() method. The file is not deleted.
I tested the file object for canWrite()...returns false.
What is the best way (if at all) to delete these files?
thanks very much!