- 创建500个文件夹名称为0-499的文件夹
public class test {
public static void main(String[] args) throws IOException {
int N = 500;
for (int i=0 ; i<500; i++){
File f2 = new File(".");
//System.out.println(f2.getAbsolutePath());
String path = "result\\Data\\network\\" + i + "\\";
System.out.println(path);
File file = new File(path);
if (!file.exists()) {
file.mkdirs();
}
}
}
}