saving high score

does anyone know how to save high score with a text file  i am using this  site http://www.packtpub.com/library/corona-game-development-for-ios-android-beginners-guide/ch08lvl1sec150# thanks 

Well @seanDp32, that tutorial would seem to show you how to save a high score to a text file.  Is there a particular issue you’re having?

but i don’t understand whats a text file is it a lua file or just a text file for example score.text  or is it a better way to save y score data thanks rob 

This would not be a lua file.  You are going to create a simple plain text file that gets saved to a special folder called system.DocumentsDirectory.  You open the file, read its contents into a Lua variable to get the last saved score.  Then you update the score and when you are ready you open the file for writing, write the score value to the file and close the file.

That tutorial gives you code that should do all the work for you and you simply call it’s load and save functions (whatever they are named) with your score and it should take care of you.

wow thanks rob you are a big help i look into that 

Well @seanDp32, that tutorial would seem to show you how to save a high score to a text file.  Is there a particular issue you’re having?

but i don’t understand whats a text file is it a lua file or just a text file for example score.text  or is it a better way to save y score data thanks rob 

This would not be a lua file.  You are going to create a simple plain text file that gets saved to a special folder called system.DocumentsDirectory.  You open the file, read its contents into a Lua variable to get the last saved score.  Then you update the score and when you are ready you open the file for writing, write the score value to the file and close the file.

That tutorial gives you code that should do all the work for you and you simply call it’s load and save functions (whatever they are named) with your score and it should take care of you.

wow thanks rob you are a big help i look into that