-2
的main.m测试NSBundle为什么控制台输出(空)?
NSString* filePath = [[NSBundle mainBundle] pathForResource:@"bookinf"
ofType:@"txt"];
NSString* content = [NSString stringWithContentsOfFile:filePath
encoding:NSUTF8StringEncoding
error:nil];
NSLog(@"file content : %@" , content);
bookinf.txt内容: '<' C程序设计语言>