首页 > 其他 > 详细

File

时间:2015-07-20 12:34:14      阅读:213      评论:0      收藏:0      [点我收藏+]

 

文件的属性读取:

exists

isFile

isDirectory

createNewFile

delete

renameTo文件夹处于同一个分区

getName

getPath相对路径

getAbsolutePath绝对路径

getParent 

lehgth()

isHidden()

canRead()

canWrite()

isDirectory()

文件设置:

setWritable()

setReadable()

setReadonly() 

 

遍历文件夹:

if(file.isDirctory){File next[] = file.listFiles();}

File

原文:http://www.cnblogs.com/hzwcoming/p/4660717.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!