Create a .plist file named myPlist.
read code:
NSBundle *bundle = [NSBundle mainBundle];
NSString *path = [bundle pathForResource:@"myPlist" ofType:@".plist"];
NSMutableDictionary *dic = [[NSMutableDictionary alloc]initWithContentsOfFile:path];
NSLog(@"content = %@",dic);
show:
write code:
[dic writeToFile:@"/tmp/demo.plist" atomically:YES];