I am working with a text file in iOS. The file size keeps increasing and reaches to 10 MB of size.The problem is accessing the content is becoming very slow.Is there any other way that I can speed up the process.Also, I want the total character length/count of the text files.Its running in the main thread.
NSString* content = [NSString stringWithContentsOfFile:path usedEncoding:&encoding error:NULL];