How to read multiple TXT files and save strings in an NSArray?

-1

Scenario explanation:

Read the contents of several .txt extension files and save the strings of each file separately to a NSArray , in this case, in each array index.

Obstacle: - There are more than 60 different files, although the text is small.             - They have different names Eg: Binder desc.txt, descLampada.txt.

NOTE: I've already got a method to read the files and store them in a string . But the problem is to read multiple files at once, and have control over the order in which they are kept in NSArray .

    
asked by anonymous 24.09.2014 / 18:56

1 answer

0

For those with this problem, having to read multiple files with different names, you can put their names as numbers and use a for loop to point to each of them.

OR

Better proposal is to use a database, in the case of SQLite, I recommend using the Core Data framework to manage.

    
15.10.2014 / 18:30