tags:

views:

43

answers:

2

What is the easiest way to write content of a dictionary into a file. Sample code will be really helpful.

+2  A: 

Write to a plist file. That would be the easiest (to read back and write to)

Use the NSDictionary method writeToFile:atomically: to write to a plist and initWithContentsOfFile: to populate the dictionary with the plist's contents.

lostInTransit
Thank you so much
Abhinav