Originally posted by Ashvini Devi:
Thanks SriRam,
That was exactly what i wanted. My problem is solved.
Thanks
Note that File.delete returns a boolean indicating success, which you may want to attend to. Also, can the directory contain other directories? In that case, recursion will be required.