Writing to Files
io.write() is used to write data to a file. This function often uses the Colon Operator shorthand to pass the file as the 1st argument. For example:
File:write("The answer is", 42)
Each argument passed is written to the File. You can write strings or numbers only.
Â