Saving data?

I have tried savelocaldata and saveglobaldata, but neither saves the data once the app has been closed out of. How do I make the app save data even after it has been closed. (In this case high score)

saveLocalDate("yourHighScore")

to save

readLocalData("yourHighScore")

to read the save file, if that’s what you need

@kirorp - that won’t work unless you include the data to be saved!

--where score contains the data you want to save
saveLocalData("yourHighScore",score)

@jrohanian Here’s how to save some global data.


function setup()
    saveGlobalData("key",12345)
    print(readGlobalData("key"))
end

forgot to put that in b-( . jrohanian would only be more confused if he used my code