File的API是偷来的,慎用

"

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() 创建新文件 删除文件


(这才是真正的宝藏)

强化快乐、新生、奉献的本质,

无需提醒的自觉,就是你成功的因素


你知道八维吗 (单选)
0人
0%
了解
0人
0%
不了解
<button>投票/<button>


分享到:


相關文章: