X file:close: Difference between revisions
From GiderosMobile
No edit summary |
m Text replacement - "<source" to "<syntaxhighlight" |
||
| Line 7: | Line 7: | ||
'''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 | ||
< | <syntaxhighlight lang="lua"> | ||
file:close() | file:close() | ||
</source> | </source> | ||
{{File}} | {{File}} | ||
Revision as of 13: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>