0

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];
MD Aslam Ansari
  • 1,565
  • 11
  • 19

1 Answers1

1

There is too many solution for your problem :

1- Reading file with more than 1MB

2- Reading file with more than 1MB

Community
  • 1
  • 1
Omarj
  • 1,151
  • 2
  • 16
  • 43