写文件:
NSString *resourcePath=[[NSBundlemainBundle] resourcePath];
NSString * realPath =[resourcePath stringByAppendingPathCom
NSLog(@".%@",realPath);
NSArray *array = [NSArray arrayWithObjects:@"11111",@"2222",@"3333",nil];
[array writeToFile:realPathatomically:YES];
读文件:
NSString *resourcePath=[[NSBundle mainBundle] pathForResource:@"a" ofType:@"plist"];
NSArray * array = [NSArrayarrayWithContentsOfFile:resourcePath];
for (NSString * str in array) {
}