Write an NSMutableArray to a file and load it back
问题 I'm doing some exercises about writing to and loading from a file. I've created an NSString , then written it to a file, and then loaded an NSString again. Simple. How can I do this with an NSMutableArray of NSStrings , or better an NSMutableArray of my own class? #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) { @autoreleasepool { // insert code here... //write a NSString to a file NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,