Hey guys,
How do you read text files in objective c? I just need the coding.
Thanxs.
Hey guys,
How do you read text files in objective c? I just need the coding.
Thanxs.
To read in a plain text file into a string, just use stringWithContentsOfFile
, like so:
NSString *info = [NSString stringWithContentsOfFile:@"/path/to/myfile.txt"];