High Score Loading after Saving

Hello All,

Ive been following the tutorial on how to save high scores.

 https://coronalabs.com/blog/2013/12/10/tutorial-howtosavescores/

Although I cant seem to get the score to re-appear at the last save point when I re-open the app

local scoreText = score.init({ fontSize = 20, font = "Helvetica", x = display.contentCenterX, y = 20, maxDigits = 7, leadingZeros = true, filename = "scorefile.txt", })

Above is the code that I have from the tutorial which seems to work fine. Then I use the below function to try to load and update the already onscreen text.

function optionButtonPressed (event) score.add( 1 ) score.save() local highscore = score.load() local myscore = score.get() end

Any help would be much appreated, Thank you in advance. 

(and if Alan QuizTix is reading “Hey”)

Can you give us some code on how your saving the score and to where? 

–SonicX278

Can you give us some code on how your saving the score and to where? 

–SonicX278