read plist
NSString *plistPath = [[NSBundle mainBundle] pathForResource:@"read" ofType:@"plist"];
NSMutableDictionary *plistData = [[NSMutableDictionary alloc] initWithContentsOfFile:plistPath];
read txt
NSString *txtpath = [[NSBundle mainBundle] pathForResource:@"read" ofType:@"txt"];
NSString *txtText = [NSString stringWithContentsOfFile:txtpath encoding:NSUTF8StringEncoding error:nil];
沒有留言:
張貼留言