Higher level file read/write with Objective-C -


as objective-c superset of c, guess can use fopen/fread/fwrite/fprint... c.

does mean objective-c doesn't have unique file processing function?

objective-c doesn't have file handling, nor c. however, c standard library does. , if want use objective-c, can use c standard library.

objective-c used foundation, -[nsdata writetourl:atomically:] , -[nsstring writetourl:atomically:encoding:error:] can used if link foundation framework.

for reading files methods -[nsdata initwithcontentsofurl:options:error:] , -[nsstring initwithcontentsofurl:encoding:error:].


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -