Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function test_write ()
- -- Opens a file in append mode
- local file = io.open("savedcoordinates.txt", "a")
- -- sets the default output file as above filename
- io.output(file)
- -- appends a word test to the last line of the file
- io.write("'Leel test file filled with shitposts") -- Crashes right here
- -- closes the open file
- io.close(file)
- end
- test_write()
Advertisement
Add Comment
Please, Sign In to add comment