Nasal library/io: Difference between revisions

→‎close(): It also flushes the buffer
(→‎Variables: Reorder)
(→‎close(): It also flushes the buffer)
Line 21: Line 21:
{{Nasal doc
{{Nasal doc
|syntax = io.close(file);
|syntax = io.close(file);
|text = Closes the specified file. Returns <code>'''nil'''</code>.
|text = Flushes and closes the specified file. Returns <code>'''nil'''</code>.
|param1 = file
|param1 = file
|param1text = File object as returned by {{func link|open()}}.
|param1text = File object as returned by {{func link|open()}}.