Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/42.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone -fileHandleForWritingAtPath:和FileHandleForUpdateingAtPath:之间的差异?_Iphone_Ipad_Nsfilehandle - Fatal编程技术网

Iphone -fileHandleForWritingAtPath:和FileHandleForUpdateingAtPath:之间的差异?

Iphone -fileHandleForWritingAtPath:和FileHandleForUpdateingAtPath:之间的差异?,iphone,ipad,nsfilehandle,Iphone,Ipad,Nsfilehandle,对我来说,听起来是一样的。更新文件意味着写入文件。写入文件对我来说也是一种更新。但我想有一个微妙的区别;-) 有人知道吗?fileHandleForWritingAtPath:返回一个只响应writeData:的对象 filehandleforupdateingatpath:响应NSFileHandle读取。。。消息和writeData:fileHandleForWritingAtPath:返回一个只响应writeData:的对象 filehandleforupdateingatpath:响应N

对我来说,听起来是一样的。更新文件意味着写入文件。写入文件对我来说也是一种更新。但我想有一个微妙的区别;-)


有人知道吗?

fileHandleForWritingAtPath:
返回一个只响应
writeData:
的对象


filehandleforupdateingatpath:
响应NSFileHandle读取。。。消息和
writeData:

fileHandleForWritingAtPath:
返回一个只响应
writeData:
的对象

filehandleforupdateingatpath:
响应NSFileHandle读取。。。消息和
写入数据: