I am developing an iOS program for iPad. The program performs some simple calculations and in the course of doing so, it reads a text file containing a lookup table (table.txt). It works fine when I run it in XCode using the iPad simulator, but when I run it on my iPad, it gives a “File not found” error. I’m reasonably sure it’s not finding the table.txt file, but I’m not sure how to verify that the table.txt file is being transferred to the iPad as part of the application test installation. I used Xcode’s “Add Files To …” function to make sure the table.txt file was added to the project, and I also visited the Target|Copy Bundle Resources pane to make sure the table.txt file was one of the items in the list.
Curiously, the program reads another data file (page0.psf) supposedly from the same directory without a problem.
I’m an old Windows programmer new to iOS so I’m not sure what I may be doing wrong. Any ideas?