Reading a file from a hard drive in iPhone simulator
问题 Is it possible to read a file (from my normal file system) into a iPhone App running on the iPhone Simulator? I understand that the iPhone itself has not got a (user accessible) file system but this is simply for testing and will only ever be run in the simulator. The file will be a text file that can be edited while the application is running, it will be read every-time a method is called. 回答1: Yes, you can, and it doesn't matter where it is. Just give it an absolute path name when you load