So, I am working on a little game that requires me to save some data. I got it working on my pc, however, when I hash it out to my friends to help alpha test this new feature and I test it myself, it doesn't work properly on the phone. We all have android type phones, of course.
Here is my code and I will explain how the program treats this code.
Upon starting up the game will go through a series of routines and will come upon one that calls for loading saved data if any.
If GetFileExists("highscoresavedata.txt") = 1
highscoresave = ReadInteger(1)
Bam, simple. It will just check to see if I have any data and if so, read it and see wassup.
Then, after that is done when the player loses all of their lives a screen will appear that will show them their score they got in that round and their overall highscore if applicable.
If Score > highscoresave
If GetFileExists("highscoresavedata.txt") = 1 then DeleteFile("highscoresavedata.txt")
SetTextString(highscoretext, "Highscore: " + str(highscoresave))
So, what am I missing? Why does this work on my computer when I test it, however it does not work on the phone?