file objecta file object that was returned by the io.open() function. The file must be opened in write or append mode.
dataany Lua type that can be converted into string. If more than one data parameter is used their contents are written to the file by one in the same order as they are specified.
<file object>if data was successfully opened.
nil, <error string>, <error number>if the data can't be written.