My app downloads a file in UTF-8 format, which is too large to read using the NSString initWithContentsOfFile method. The problem I have is that the NSFileHan
NSString initWithContentsOfFile
NSFileHan
utf8 is self synchronizing - just read a little more or less as needed, then read the byte values to determine the boundaries for any code point.
also, you could use fopen and use a small, manageable buffer on the stack for this and memory will not be an issue.
fopen