package zuoye;
import java.io.File;
import java.io.IOException;
public class zuoye {
public static void main(String[] args){
try {
fu();
} catch (IOException e) {
e.printStackTrace();
}
//fu1();
}
public static void fu() throws IOException{
File a=new File("D:\aaa");
boolean a1=a.mkdirs();
System.out.println(a1);
File c=new File("D:\aaa\aaa.txt");
boolean c1 = c.createNewFile();
System.out.println(c1);
File c2=new File("D:\aaa\bbb.txt");
boolean c3 = c2.createNewFile();
System.out.println(c3);
File c4=new File("D:\aaa\ddd.txt");
boolean c5 = c4.createNewFile();
System.out.println(c5);
File[] a2 = a.listFiles();
for(File i:a2){
System.out.println(i);
}
}
}