FutureBasic Logo

<<    Index    >> FutureBasic

close   statement



Syntax 1
[ result = ] close [ fileID [,@err] ]

Syntax 2
close [ [ #]fileID [,[ #] deviceID2 ...] ]

Description
Closes one or more files or devices (usually a serial port) previously opened with the open statement. If no fileID 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 fileID or deviceID (for a subsequent open statement).

See also
open