I\'m creating temporary file in java but i\'m unable to delete it. This is the code I have written:
temp = File.createTempFile(\"temp\", \".txt\"); temp.dele
There's a bug saying that if the file is open by filewriter or anything, it won't be deleted. On windows. Check if you close your file writers.
Another workaround would be installing a ShutdownHook which would manually delete the file.