@Test
public void test2() throws IOException{
String path="e:\\c\\c\\d";
String fileName= "a.txt";
File file = new File(path);
if(!file.exists()){
file.mkdirs();
}
File f = new File(file, fileName);
f.createNewFile();
}创建指定路径文件
最新推荐文章于 2023-10-17 14:33:19 发布
1389

被折叠的 条评论
为什么被折叠?



