public class a {
public static void main(String[] args) throws IOException {
File file=new File("D:\\c.txt");
File file1=new File("D:\\r.txt");
File file2=new File("D:\\e.txt");
File test=new File("D:\\p.txt");
File test1=new File("D:\\o.txt");
File test2=new File("D:\\d.txt");
File test3=new File("D:\\q.txt");
System.out.println(file.mkdirs());
System.out.println(file1.mkdir());
System.out.println(file2.createNewFile());
System.out.println("---------------------");
//System.out.println(file.delete());
System.out.println(file.exists());
System.out.println(file.isFile());
System.out.println(file.isDirectory());
System.out.println("---------------");
System.out.println(file.getCanonicalPath());
System.out.println(file.getPath());
System.out.println(file.getName());
System.out.println(file.length());
System.out.println("--------------------");
}
}