怎么添加一个新文件到本地

File targetFile = new File("C:\temp\"+"测试"+".pdf");
targetFile.createNewFile();

  

原文地址:https://www.cnblogs.com/wwssgg/p/14685671.html