Difference between revisions of "X file:close"

From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2011.6<br/> '''<translate>Class</translate>:''' file<br/> === <transl...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[file]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/file|file]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Closes file. Note that files are automatically closed when their handles are garbage collected, but that takes an unpredictable amount of time to happen.</translate>
+
Closes file.
<source lang="lua">
+
 
 +
'''Note:''' files are automatically closed when their handles are garbage collected, but that takes an unpredictable amount of time to happen
 +
<syntaxhighlight lang="lua">
 
file:close()
 
file:close()
 
</source>
 
</source>
  
 
{{File}}
 
{{File}}

Latest revision as of 14:32, 13 July 2023

Available since: Gideros 2011.6
Class: file

Description

Closes file.

Note: files are automatically closed when their handles are garbage collected, but that takes an unpredictable amount of time to happen <syntaxhighlight lang="lua"> file:close() </source>