I want to put the content of my
Possible? - yes
Advisable? - unless it is an extremely large file, why not?
How? - There is already a method to do it for you in
See the snippet below:
NSError* error = nil; NSString *path = [[NSBundle mainBundle] pathForResource: @"foo" ofType: @"html"]; NSString *res = [NSString stringWithContentsOfFile: path encoding:NSUTF8StringEncoding error: &error];