"
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() 創建新文件 刪除文件
(這才是真正的寶藏)
強化快樂、新生、奉獻的本質,
無需提醒的自覺,就是你成功的因素
閱讀更多 張王巖 的文章