Difference between revisions of "X file:close"

From GiderosMobile
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Closes file.
 
Closes file.
 +
<syntaxhighlight lang="lua">
 +
file:close()
 +
</syntaxhighlight>
  
 
'''Note:''' files are automatically closed when their handles are garbage collected, but that takes an unpredictable amount of time to happen
 
'''Note:''' files are automatically closed when their handles are garbage collected, but that takes an unpredictable amount of time to happen
<source lang="lua">
 
file:close()
 
</source>
 
  
 
{{File}}
 
{{File}}

Latest revision as of 05:57, 30 July 2025

Available since: Gideros 2011.6
Class: file

Description

Closes file.

file:close()

Note: files are automatically closed when their handles are garbage collected, but that takes an unpredictable amount of time to happen