Assuming you have a file in bundle (as it wasnt clear from the question), you can read the file with following code:
NSString * path = [[NSBundle mainBundle] pathForResource:@"YOU_FILE_NAME" ofType:@"txt"];
NSString *jsonString = [NSString stringWithContentsOfFile:path encoding:NSUTF8StringEncoding error:nil];
then print it to console using:
NSLog(@"%@",jsonString);
4
solved I have a JSON file attached below and i want to print it in the console, currently i am using xcode 4.4 [closed]