二.File类:
1.构造方法:
public File(String pathname)
public File(String parent,String child)
public File(File parent,String child)
2.创建功能
public boolean createNewFile():
public boolean mkdir()
public boolean mkdirs()
3.删除功能
public boolean delete()
4.重命名功能
public boolean renameTo(File dest)
5.判断功能
public boolean isDirectory()
public boolean isFile()
public boolean exists()
public boolean canRead()
public boolean canWrite()
public boolean isHidden()
6.基本获取功能
public String getAbsolutePath()
public String getPath()
public String getName()
public long length()
public long lastModified()
7.高级获取功能
public String[] list()
public File[] listFiles()