Difference between revisions of "Io.read"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === Reading from default input, basically equivalent to io.input():read <source lang="lua"> (string), = io...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 +
'''Class:''' [[io]]<br/>
 +
 
=== Description ===
 
=== Description ===
Reading from default input, basically equivalent to io.input():read
+
Reading from default input, basically equivalent to io.input():read.
<source lang="lua">
+
<syntaxhighlight lang="lua">
(string), = io.read(format1...,)
+
(string) = io.read(format1,...)
</source>
+
</syntaxhighlight>
'''format1:''' (string) reading format ''''''<br/>
+
 
'''...:''' (string) more optional formats '''optional'''<br/>
+
=== Parameters ===
 +
'''format1''': (string) reading format<br/>
 +
'''...''': (string) more optional formats '''optional'''<br/>
 +
 
 +
=== Return values ===
 
'''Returns''' (string) returns read values or nil<br/>
 
'''Returns''' (string) returns read values or nil<br/>
 +
 +
{{Io}}

Latest revision as of 14:30, 13 July 2023

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