Io.input

From GiderosMobile
Revision as of 11:03, 23 August 2018 by Hgy29 (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === When called with a file name, it opens the named file (in text mode), and sets its handle as the defau...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2011.6

Description

When called with a file name, it opens the named file (in text mode), and sets its handle as the default input file. When called with a file handle, it simply sets this file handle as the default input file. When called without parameters, it returns the current default input file.


In case of errors this function raises the error, instead of returning an error code.
(file), = io.input(file,)

file: (file) file object to use as default input optional
Returns (file) default input file object