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
Post a Comment