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...") |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
| − | + | '''Available since:''' Gideros 2011.6<br/> | |
| − | ''' | + | '''Class:''' [[file]]<br/> |
| − | ''' | + | |
| − | === | + | === Description === |
| − | + | Closes file. | |
| − | < | + | <syntaxhighlight lang="lua"> |
file:close() | file:close() | ||
| − | </ | + | </syntaxhighlight> |
| + | |||
| + | '''Note:''' files are automatically closed when their handles are garbage collected, but that takes an unpredictable amount of time to happen | ||
{{File}} | {{File}} | ||
Latest revision as of 04: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