Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSString *nameOfFile = ... ;
- NSError *error;
- NSString *string = [[NSString alloc] initWithContentsOfFile:nameOfFile encoding:NSUTF8StringEncoding error:&error];
- if (string == nil) {
- // handle error
- }
- [string release];
Add Comment
Please, Sign In to add comment