file.delete()的优化

//删除暂存的pdf
File file =new File(pdfFilename);
file.delete();

Path path2 = Paths.get(pdfFilename);
Files.delete(path2);

猜你喜欢

转载自www.cnblogs.com/whoknows1/p/9773065.html