I already know how to upload a file and place its contents into a string with:
NSString *fileContents = [NSString stringWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"WellBalanced Recipes" ofType:@"txt"]
encoding:NSUTF8StringEncoding
error:NULL];
However, I would like to parse this text document into separate strings. For example, if I had different recipes in the same document, I would like to somehow separate each recipe.
Use
- (NSArray *)componentsSeparatedByString:(NSString *)separator