how to call a file in documentsDirectory

I need to display the highscore in my documents folder in the project sandbox so I can show the user their highscore at the end of the game. How is it done?

I think it involves this line of code… Obviously…

local docs_path = system.pathForFile( “”, system.DocumentsDirectory )

Hi @Max281,

Please see the first guide in this section (“Reading and Writing Files”):

http://coronalabs.com/resources/tutorials/data-files-and-strings/

Brent

Hi @Max281,

Please see the first guide in this section (“Reading and Writing Files”):

http://coronalabs.com/resources/tutorials/data-files-and-strings/

Brent