[Phone文件系统NSFleManager讲解.docxVIP

  • 0
  • 0
  • 约1.24万字
  • 约 8页
  • 2017-01-21 发布于北京
  • 举报
[Phone文件系统NSFleManager讲解

//file文件操作NSFileManager?常见的NSFileManager文件的方法:-(BOOL)contentsAtPath:path ? ? ? ? ? ? ? ?从文件中读取数据-(BOOL)createFileAtPath:path contents:(BOOL)data attributes:attr ? ? ?向一个文件写入数据-(BOOL)removeFileAtPath: path handler: handler ? 删除一个文件-(BOOL)movePath: from toPath: to handler: handler 重命名或移动一个文件(to可能已经存在)-(BOOL)copyPath:from toPath:to handler: handler 复制文件 (to不能存在)?-(BOOL)contentsEqualAtPath:path1 andPath:path2 ? ?比较两个文件的内容?-(BOOL)fileExistsAtPath:path ? ?测试文件是否存在?-(BOOL)isReadablefileAtPath:path 测试文件是否存在,且是否能执行读操作?-(BOOL)isWritablefileAtPath:path 测试文件是否存在,且是否能执行写操作?-(NSDictionary *)fileAttributesAt

文档评论(0)

1亿VIP精品文档

相关文档