标签:
1. 多级目录下创建文件
File file = new File("aa/bb/cc.txt");
File pf = file.getParentFile();
if(!pf.exists()){
pf.mkdirs();
}
try {
file.createNewFile();
} catch (IOException e) {
e.printStackTrace();
}
标签:
原文地址:http://www.cnblogs.com/angelshelter/p/4508307.html