Sunday, February 8, 2009

How To Make 1 Inch Billiards Triangle

Delete Files with Java Introduction to ANT

order to delete files from hard disk, we must first make a File class java.io.File file =

 java.oi.File ("String with the path"); 
file. delete ();



This method We return a boolean if he could erase.

In case we need to create temporary files are erased when you finish the program, we can use another method of the class file.


 java.io.File file = java.oi.File ("String with the path"); 
file.deleteOnExit ();



This method is void, because as it is not instantaneous secure file deletion. The files are erased when the program is called closure.

0 comments:

Post a Comment