NSString *fileString = [NSString stringWithContentsOfFile:filePath]; NSArray *lines = [fileString componentsSeparatedByString:@"\n"]; NSInteger *elements = [lines count]; NSLog(@"Number of Shows : %lu", elements);
iOS, Android, Unity3D Education blog,
NSString *fileString = [NSString stringWithContentsOfFile:filePath]; NSArray *lines = [fileString componentsSeparatedByString:@"\n"]; NSInteger *elements = [lines count]; NSLog(@"Number of Shows : %lu", elements);
Dr. Powen Ko is a teacher and CEO on LoopTek LLC, and like to teaching. if you need to class, please let PowenKo know, he will love to service and sharing. LoopTek web site is www.looptek.com