Saving a variable

So, I have made a very simple game and I want to save the highscore so that it doesnt reset itself every time the game is opened. 

I have read both of theese tutorials,  http://coronalabs.com/blog/2013/12/10/tutorial-howtosavescores/http://coronalabs.com/blog/2012/08/28/how-external-modules-work-in-corona/

but I still dont quite understand it. Please bear in mind that I am very new to this :) 

So I just want the game to remember one variable. Do I have to use a module for this? 

cant I just write something alogn the lines of this: http://pastebin.com/eBnp12Q8 ?

or will this not work? and in that case why? 

Thanks alot in advance. 

Best regards, Simon :slight_smile:

Try DMC autostore:

https://developer.coronalabs.com/code/dmc-lib-auto-store

You could also check out GGData, a persistent data library that was released by Glitch Games for Corona developers.  I have used it and it is very easy to use.

https://github.com/GlitchGames/GGData

Try DMC autostore:

https://developer.coronalabs.com/code/dmc-lib-auto-store

You could also check out GGData, a persistent data library that was released by Glitch Games for Corona developers.  I have used it and it is very easy to use.

https://github.com/GlitchGames/GGData