对我来说,这听起来像是同一件事。更新文件意味着写入文件。写入文件对我来说也是一种更新。但我猜有细微的差别;-)
有人知道吗?
最佳答案
fileHandleForWritingAtPath:
返回一个仅响应 writeData:
的对象。
fileHandleForUpdatingAtPath:
响应 NSFileHandle read... 消息和 writeData:
。
关于iphone - -fileHandleForWritingAtPath : and fileHandleForUpdatingAtPath:? 之间的区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4003793/