title: How to read a text file from my application's bundle and display it in a UITextView
body: <p>I want to read a text file  called "config.txt" from my application's bundle and display it in a UITextView. The code below is not working, can anyone help me?</p>
  
  <p>IF i want to display it on a View then what i should do as well.</p>
  
  <p>I have a IBOutlet to a UITextView, also please tell me how to change the text font and colour programmatically.</p>
  
  <pre><code>NSString *filePath = [[NSBundle mainBundle] pathForResource:@"config" ofType:@"txt"];  
  if (filePath) {  
      NSString *myText = [NSString stringWithContentsOfFile:filePath encoding:NSUTF8StringEncoding];
      if (myText) {  
          textView.text= myText;    
      }
  }
  
  
  [super viewDidLoad];
  </code></pre>