This article is tagged with: How to save to a file lua and lua
how to save to a file lua
print("High score: "..tostring(score))
local file,err = io.open("high_score.txt",'w')
if file then
print("error:", err) -- not so hard?