Guest User

Untitled

a guest
Feb 11th, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.24 KB | None | 0 0
  1. function highScore.save()
  2.    local path = system.pathForFile( M.filename, system.DocumentsDirectory )
  3.    local file = io.open(path, "w")
  4.    local contents = tostring( highScore )
  5.    file:write( contents )
  6.    io.close( file )
  7.    return true
Advertisement
Add Comment
Please, Sign In to add comment