I have tried a few combinations without result. Currently, my code does this :
OnLoaded
- FileAction Read "SaveFile"
File - "SaveFile"
- OnRead
- FileMoveData HighScore.Value
- OnWrite
- FileMoveData HighScore.Value
AppState GameOver
- FileAction Write "SaveFile"
SaveFile is encoded to char and saves to SaveFile.dat. Nothing else is set.
I tried looking at the ReadFile-example as well as some old examples I found on the forum, but all concerned reading a already filled data file.
I tried adding an array to SaveFile and a ZExpression reading values from it, such as :
SaveArray[0] = HighScore.Value; but that didn't help either. SaveFile.dat is 10 bytes big though, so something must have happened.
![Smile :)](./images/smilies/icon_smile.gif)
As always, help is appreciated!
![Smile :)](./images/smilies/icon_smile.gif)