Io.read: Difference between revisions
From GiderosMobile
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2011.6<br/> | |||
''' | '''Class:''' [[io]]<br/> | ||
''' | |||
=== | === Description === | ||
Reading from default input, basically equivalent to io.input():read. | |||
<source lang="lua"> | <source lang="lua"> | ||
(string) = io.read(format1,...) | (string) = io.read(format1,...) | ||
</source> | </source> | ||
=== | |||
'''format1''': (string) | === Parameters === | ||
'''...''': (string) | '''format1''': (string) reading format<br/> | ||
=== | '''...''': (string) more optional formats '''optional'''<br/> | ||
''' | |||
=== Return values === | |||
'''Returns''' (string) returns read values or nil<br/> | |||
{{Io}} | {{Io}} | ||
Revision as of 05:19, 7 December 2020
Available since: Gideros 2011.6
Class: io
Description
Reading from default input, basically equivalent to io.input():read.
(string) = io.read(format1,...)
Parameters
format1: (string) reading format
...: (string) more optional formats optional
Return values
Returns (string) returns read values or nil