Hi, I'm new to Xcode. I have the following code working perfectly to read a text file located in the project bundle.
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"txt"];
NSString *textFromFile = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding error:nil];
My question is how to read the text file from URL?