I believe this is what you are looking for (from the NSString class reference linked above):
stringWithContentsOfURL:encoding:error:
Returns a string created by reading data from a given URL interpreted using a given encoding.
- (id)stringWithContentsOfURL:(NSURL *)url encoding:(NSStringEncoding)enc error:(NSError **)error
Parameters
url
The URL to read.
enc
The encoding of the data at url.
error
If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in NULL.
Return Value
A string created by reading data from URL using the encoding, enc. If the URL can’t be opened or there is an encoding error, returns nil.