FutureBasic Logo

<<    Index    >> FutureBasic

close   statement

close [[#]fileNum [,[#]deviceID2 ...]]

Closes one or more files or devices (usually a serial port) previously opened with the open statement. If no file or deviceID is specified, all open files and devices are closed.
Closing a file forces any remaining bytes in the output buffer to be written to disk, and allows you to re-use the number specified in fileNum or deviceID (for a subsequent open statement).

See also