Saving data on a txt file. Works on build in mac but not ipad?

I`m saving my game data in a txt file. It works perfect on the mac buildd but doesnot work on the ipad. Any surgestions.
I save my settings , all boolean and integers in text form. When I load the game I set All the variables back to there original. Works on the mac and windows builds. Does not work on the ipad.
Any suggestions.

I haven’t worked with iPhone/iPad scripting before, but I wouldn’t be surprised if File I/O is disabled/limited. Can PlayerPrefs do what you need?

You can save text files on the iDevices, but only to a specific directory. I’m not sure what the correct path is, so hopefully someone with more experience will chime in.

Save yourself time and headache, use PlayerPrefs instead