The code below creates a file called test.xml in C:\tmp. The problem im having is that I cant delete the file without stopping tomcat first. Gives me the windows error message "Cannot delete test:it is being used by another person or program".
How do I make it so after I create my file I can delete it without stopping tomcat?
Thanks in advance.
File dir = new File(File.separator + "tmp");
FileWriter filewriter1 = new FileWriter(File.separator + "tmp" + file.separator + "test.xml");
you write process looks good to me, I think the problem might be in your read process. I believe you must be reading it in somewhere of your java code otherwise there is no point to create it. so check
The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.
For months I had no idea how to 'discover' the IP address of the other end of a link (without asking someone who knows), and it drove me batty.
Think about it. You can't use Cisco Discovery Protocol (CDP) because it's not implemented on the ASAs.…
Two types of users will appreciate AOMEI Backupper Pro:
1 - Those with PCIe drives (and haven't found cloning software that works on them).
2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…