"
File
API 说明
pathSeparator separator 路径|路径分隔符|
--------------------------------------------------------------------------------------
File(String parent,String child) 构造器
没有盘符以user.dir作为相对路径
File(File parent,String child)
File(String name)
---------------------------------------------------------------
getName() getPath() 文件名、路径名
getAbsolutePath()
getParent()
------------------------------------------------------------------------------
exists() isFile() isDirectory() 判断状态
length() 文件长度
creaeNewFile() delete() 创建新文件 删除文件
(这才是真正的宝藏)
强化快乐、新生、奉献的本质,
无需提醒的自觉,就是你成功的因素
閱讀更多 張王巖 的文章