读取本地文件内容

NSString*filePath=[[NSBundlemainBundlepathForResource:@"1"ofType:@"txt"];
NSString*str=[[NSStringallocinitWithContentsOfFile:filePath];
NSLog(@"%@",str);

posted @ 2015-12-28 15:25  Bo-tree  阅读(95)  评论(0)    收藏  举报