If your file will always be read-only (updated only as part of the application update), add it to your application resources in your project. Then you just read the file from the application package:
// assume a filename of file.txt. Update as needed NSString *filePath = [[NSBundle mainBundle] pathForResource:@"file" ofType:@"txt"];
If you need to provide the source file with your application, but make updates at runtime, you need to pack the file as described above, but when you first launch the application, you need to copy the file to another writable location in your sandbox app.
source share