Difference between revisions of "X file:close"
From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight") |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
| − | '''Class:''' [[ | + | '''Class:''' [[X File]]<br/> |
=== 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 | ||
| − | |||
| − | |||
| − | |||
| − | {{File}} | + | {{X File}} |
Latest revision as of 22:38, 24 January 2026
Available since: Gideros 2011.6
Class: X 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