Writes a line of text to the file specified by fileid.
Parameters:
fileid- the file identifier to which to write the data.
text - the text to write. A line ending is automatically appended to the text. If the parameter is an array, each element is written as a separate line.
Returns:
True if the operation succeeded, false otherwise. If the operation fails, the reason may be obtained by calling fileGetLastError().