我在serlvet中执行删除文件操作,却怎么也不能删除,确定文件目录与文件名没有错误。也确定执行了删除文件的语句,我的代码如下:
File del=    new   File("文件名");
                   del.delete();