Difference between revisions of "Io.tmpfile"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns a handle for a temporary file. This file is opened in update mode and it is automatically removed when the program ends.
 
Returns a handle for a temporary file. This file is opened in update mode and it is automatically removed when the program ends.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(file) = io.tmpfile()
 
(file) = io.tmpfile()
 
</source>
 
</source>

Revision as of 15:28, 13 July 2023

Available since: Gideros 2011.6
Class: io

Description

Returns a handle for a temporary file. This file is opened in update mode and it is automatically removed when the program ends. <syntaxhighlight lang="lua"> (file) = io.tmpfile() </source>

Return values

Returns (file) file object for temporary file