title: Lua saving to file
body: <p>I'm working on a small project in Lua and having problem saving the score to disk.</p>
  
  <p>My code is like this, and I do get the print message.</p>
  
  <pre><code>function saveHighScore(score)
      print("High score: "..tostring(score))
      local file = io.open("high_score.txt",'w')
      file:write(tostring(score))
      file:close()
  end
  </code></pre>
  
  <p>Anyone out there that can help?</p>