file.close

Syntax

b = file.close(<f>)

Close a file. The most recently opened file is closed if no arguments are provided.

Returns:b - true if a file was closed.
Arguments:f - optional file pointer