I have done this before, but now it does not work for me. I do:
NSString* path = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"txt"]; NSString* content = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:NULL]; NSLog(@"%@",path);
and it returns (null) every time I have an NSLog path and content. Can anyone see what I'm doing wrong?
ios text objective-c bundle
Chris Feb 18 '11 at 16:27 2011-02-18 16:27
source share