![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
day19
魔法音乐
发发发发而无法
爱的购房艾弗下
展开
-
File类删除和重命名功能
public class Demo3_FileMethod { /** * * A:重命名和删除功能 * public boolean renameTo(File dest):把文件重命名为指定的文件路径 * public boolean delete():删除文件或者文件夹 * B:重命名注意事项 * 如果路径名相同,就是改名。 * 如果路径名不同,就是改名并...原创 2018-11-02 14:16:09 · 284 阅读 · 0 评论 -
File类判断功能
public class Demo4_FileMethod { /** * * A:判断功能 * public boolean isDirectory():判断是否是目录 * public boolean isFile():判断是否是文件 * public boolean exists():判断是否存在 * public boolean canRead():判断是否可读 ...原创 2018-11-02 14:16:55 · 173 阅读 · 0 评论 -
File类的获取功能
public class Demo5_FileMethod { /** * * A:获取功能 * public String getAbsolutePath():获取绝对路径 * public String getPath():获取路径 * public String getName():获取名称 * public long length():获取长度。字节数 * pu...原创 2018-11-02 14:37:00 · 122 阅读 · 0 评论