tags:

views:

35

answers:

1
 NSMutableDictionary *dicta = [[NSMutableDictionary alloc]  init];

 [dicta writeToFile:[docDirectory stringByAppendingPathComponent:foo] atomically:YES];

I know only how write

W+ ?

+1  A: 

If you're talking about appending to a file. Usually, you would modify the NSMutableDictionary using code and then save the entire Dictionary to disk using the code you posted above.

Jordan
So first i read file -> add old value to NSDictionary -> rewrite?
Andrew H
Correct. NSDictionary has a method initWithContentsOfFile:
Jordan