Difference between revisions of "Io.read"

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