Difference between revisions of "Io.output"
From GiderosMobile
Line 15: | Line 15: | ||
=== <translate>Return values</translate> === | === <translate>Return values</translate> === | ||
'''<translate>Returns</translate>''' (file) <translate>default output file object</translate><br/> | '''<translate>Returns</translate>''' (file) <translate>default output file object</translate><br/> | ||
+ | |||
+ | {{Io}} |
Revision as of 21:52, 11 February 2020
Available since: Gideros 2011.6
Class: io
Description
When called with a file name, it opens the named file (in text mode), and sets its handle as the default output file. When called with a file handle, it simply sets this file handle as the default output file. When called without parameters, it returns the current default output file.
In case of errors this function raises the error, instead of returning an error code.
(file) = io.output(file)
Parameters
file: (file) file object to use as default output optional
Return values
Returns (file) default output file object