Skip to content

Instantly share code, notes, and snippets.

@frhd
Created November 21, 2013 16:32
Show Gist options
  • Save frhd/7585042 to your computer and use it in GitHub Desktop.
Save frhd/7585042 to your computer and use it in GitHub Desktop.
Writing to file in lua 5.2
local file = io.open("example.txt", "a") -- a for append, w for overwrite all
file:write("Dont think you are. Know you are.")
file:close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment