摘要: File类 操作文件的方法 createNewFile() //创建新文件。 delete(); //直接从磁盘上删除 exists(); //查询磁盘中的文件是否存在 getAbsolutePath(); //获取绝对路径 getPath(); //获取相对路径 getName(); //获取文件 阅读全文
posted @ 2022-12-01 01:34 Anti-kill 阅读(762) 评论(0) 推荐(0)