Difference between revisions of "Io.read"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
=== 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>
  
 
=== Parameters ===
 
=== Parameters ===

Latest revision as of 15: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