What exactly are you trying to do? I'm confused about your code - you can't have an assignment operator (=) inside of a message call the way you do - this code shouldn't even compile. Perhaps you meant:
NSString *path = [[NSBundle mainBundle] pathForResource:@"textFile" ofType:@"txt" inDirectory:@""];
Anyway, You certainly can use stdio calls to do your file management, but there are a number of easier ways to read files in Cocoa - most people don't use the low-level calls unless they need to do something rather unusual because then you are responsible for all sorts of things like endianness that would be handled automatically for you using one of the Cocoa objects.
You can use NSFileHandle for moderately complex situations where you need to seek to offsets or append data to a file.
It's pretty well documented here:
http://developer.apple.com/documentatio ... rence.html
If you just want to read data into memory, you can use something like:
NSError *error;
NSString *myString = [NSString stringWithContentsOfFile:@"/path/to/myfile.txt" encoding:NSUTF8StringEncoding error:*error];
or if it's not text data, you can do something similar with NSData
NSData *myData = [NSData dataWithContentsOfFile:@"/path/to/myfile.txt"];
Hope this helps,
Jeff