I am trying to fetching a JSON file which exist in my xcode resources using this code
JSON
xcode
-(void)readJsonFiles { NSString *str=[[[NSBu
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"MyFile" ofType:@"txt"]; NSData *myData = [NSData dataWithContentsOfFile:filePath];