Hi Ragu,
The quickest way to find the answer is to check the
JDK API Here's what is says for the delete() method in File.
public boolean delete()
Deletes the file or directory denoted by this abstract
pathname. If this pathname denotes a directory, then the
directory must be empty in order to be deleted.
Returns:
true if and only if the file or directory is
successfully deleted; false otherwise
Hope that helps.
------------------
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform
[This message has been edited by Jane Griscti (edited July 20, 2001).]