The iPhone SDK docs claim fopen() is a supported method of file access but I am unable to get it to return a FILE handle. I am accessing a directory which is included in my
Just to be clear to open a file "some.txt"...
NSString * path = [[NSBundle mainBundle] pathForResource: @"some" ofType: @"txt"]; FILE *f = fopen([path cStringUsingEncoding:1],"r"); if (f == NULL) NSLog([path stringByAppendingString:@" not found"]);