import java.io.*;
import java.io.*;
class Main{
public static void main(String[] args) throws IOException{
// File path=new File("e:\\liudan2");
// File file=new
File(path,"txt.txt");
StringBuffer st1=new StringBuffer("d:\\");
for(int
i=0;i<1000;i++)
{
st1.append("ld"+i+"\\"+"\\");
}
File path=new File(st1.toString());
File file=new
File(path,"txt.txt");
path.mkdirs();
file.createNewFile();
}
}
原文地址:http://www.cnblogs.com/lpjia/p/3746953.html