开发者

Difference between -fileHandleForWritingAtPath: and fileHandleForUpdatingAtPath:?

开发者 https://www.devze.com 2023-01-21 06:17 出处:网络
For me it sounds like the same thing. Updating a file implies to write to the file. Writing to a file is also an update for me. But I guess 开发者_如何学Gothere\'s a subtle difference ;-)

For me it sounds like the same thing. Updating a file implies to write to the file. Writing to a file is also an update for me. But I guess 开发者_如何学Gothere's a subtle difference ;-)

Does anyone know?


fileHandleForWritingAtPath: returns an object that responds only to writeData:.

fileHandleForUpdatingAtPath: responds to both NSFileHandle read... messages and writeData:.

0

精彩评论

暂无评论...
验证码 换一张
取 消