I am creating a static library for iOS which reads data from files which have to be present in the system (I am not downloading them when the application runs) and do some calculations and return the results.
I will need to ship the files along the application. So my questions are below
- How to include input files in the project so that they get copied along with the application.
- How to read from the files when the application is running.
Thanks
Copy them into the app’s bundle directory.
Now that’s broad enough a question. Maybe you’re looking for the NSFileManager, NSFileHandle and NSData classes.