Writes to a file
Writes arguments to the file. They must be strings or numbers.
If the write was successful the function returns true.
If the file cannot be written the function returns 3 things:
An error message (string)
An error code (number)
A sensible thing to do would be to check the return code like this:
See Also ...
f:close - Closes a file
Lua base functions
(Help topic: lua=f:write)
Enter a search string to find matching documentation.
Gammon Software support
Forum RSS feed ( https://gammon.com.au/rss/forum.xml )