io.flush()

Type Function
Library io.*
Return value none
Revision Release 2022.3683
Keywords io, flush, file
See also io.output()
io.write()

Overview

Flushes the default output file. Equivalent to io.output():flush.

If io.output has not been changed from its default output (stdout), this will flush any io.write or print data to the Corona Simulator Console, Xcode console, or Console.app.

Syntax

io.flush()

Example

io.write( "My console data\n" ) -- write the string to console
io.write( "My console data 2\n" ) -- write the string to console
 
io.flush()