2023年1月7日
摘要: IO流之获取文件信息 public class FileInformation { public static void main(String[] args) { } //获取文件的信息 @Test public void info() { //先创建文件对象 File file = new Fi 阅读全文
posted @ 2023-01-07 19:55 小宇不会编程 阅读(44) 评论(0) 推荐(0)
摘要: IO流之创建文件 方式1 new File(String pathname) 方式2 new File(File parent,String child)//根据父目录文件+子路径构建 方式3 new File(String parent,String child)//根据父目录+子路径构建 pub 阅读全文
posted @ 2023-01-07 19:39 小宇不会编程 阅读(60) 评论(0) 推荐(0)