I am unzipping xml files from a zip file using java util and reading xml files using DOM parser through my application after reading I want to delete the files which I unzipped. But until unless I wont close my application I cant delete the files. Even I tried to delete from Windows Explorer but it is showing message like It is being used by another person or program. ........
How can I delete those files with out closing the application.
Please use code blocks while posting code. You can do that by using the "Code" button in the message editor window.
What does the deleteDir method look like (the name of the method doesn't sound right, since you are passing it a file and not just a directory)? Also please post the exact exception stacktrace that you receive. While posting that stacktrace, wrap it in a code block too.