If you don't want to do anything fancy with the file but store those text objects, how about putting them into an NSArray and using NSArchive/NSUnarchive to write/read them?
Writing:
Reading back:Code:NSArray *someArray = [ NSArray arrayWithObjects:text,fields,here,nil ]; if( [ NSArchiver archiveRootObject:someArray toFile:@"/tmp/archfile" ] == YES ) // do something when successful here else // do something when fails here
Code:NSArray *readArray = [ NSUnarchiver unarchiveObjectWithFile:@"/tmp/archfile" ]; // then just [ readArray objectAtIndex:0 ] // and :1 :2 etc...




LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks