1个回答
展开全部
NSString* fileRoot = [[NSBundle mainBundle] pathForResource:fileName ofType:@"txt"];
NSString* fileContents = [NSString stringWithContentsOfFile:fileRoot encoding:NSUTF8StringEncoding error:nil];
NSArray *s = [fileContents componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询