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");
String szXMLString="this is a test";