title: Read text file in a folder
body: <p>I'm developing an iPhone app.</p>
  
  <p>I know how to read a text file placed in the same directroy as the project.
  But how do I read files in a folder placed in the same directory as the project?
  It always gives me a blank screen.</p>
  
  <p>This works:</p>
  
  <pre><code>NSString *textUrl = [[NSBundle mainBundle] pathForResource:@"myText" ofType:@"txt"];
  textView.text = [NSString stringWithContentsOfFile:textUrl encoding:NSUTF8StringEncoding error:nil];
  </code></pre>
  
  <p>But this gives me a blank text view:</p>
  
  <pre><code>NSString *textUrl = [[NSBundle mainBundle] pathForResource:@"myFolder/myText" ofType:@"txt"];
  textView.text = [NSString stringWithContentsOfFile:textUrl encoding:NSUTF8StringEncoding error:nil];
  </code></pre>
  
  <p>How do I resolve this?</p>