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];
There is too many solution for your problem :
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.