Oct 7, 2001 #1 viclap Programmer Oct 12, 2000 39 PH Hi to all, any example on how to delete files in Java? Let say tmp files stored in windows\temp directory.... thanks a lot.
Hi to all, any example on how to delete files in Java? Let say tmp files stored in windows\temp directory.... thanks a lot.
Oct 7, 2001 #2 wushutwist Programmer Aug 3, 2000 984 US Use the Code: delete() method in the Code: File class. Basic example: Code: File temp = new File("C:\\test.txt"); temp.delete(); Consult JavaDocs for more information. Upvote 0 Downvote
Use the Code: delete() method in the Code: File class. Basic example: Code: File temp = new File("C:\\test.txt"); temp.delete(); Consult JavaDocs for more information.