hi all!
i want to delete a file/directory in java, the delete().depends on other programs which uses file name as string.but for me to delete the file,the name must be a File.
that is what i have realized as when i use string it does not recognized some methods,like List etc
how can i go about it.
note:
1.the program should not limit to only file but should also delete directory if the thing to be deleted is directory.
2.the file should be deleted despite any security measure like:write protected etc
please help