IO 流 文件操作 创建文件对象构造器与方法 new File(String pathName): 根据路径构建一个File对象 new File(File parent, String child): 根据父目录文件 + 子路径构建 new File(String parent, String child) : 根据父目录 + 子路径构建 创建新文件: file.createNewFile() 获取文件信息 getName getAbsolutePath getParent length exists isFile isDirectory 目录操作 mkdir() 创建一级目录 m...