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