I am trying to create one long string from a text file. This is the code that I currently have. I do not really understand the encoding and I tried to research but found nothing. This is the line of code that I have:
NSString* data = [[NSString alloc] initWithContentsOfFile:@"12thnew.txt" encoding: error:NULL];
When I entered the encoding as NSASCIIStringEncoding, and asked to print the string in NSLog I got the null error. Please help. Thanks.