PickBASIC / FlashBASIC
%close() function
.mdThe %close() function closes the UNIX file specified by file.descriptor returned by a previous call to %open(), %creat(), %dup(), %socket(), or %accept().
All host OS files opened from a FlashBASIC program are closed automatically at main program termination. However, it is a safe practice to close files explicitly.
Note: You must use %socketclose if attempting to close a socket file descriptor
in Windows.
Syntax
var = %close(file.descriptor)
CAUTION: Closing one of the system files (stdin,
stdout, and so on) has unpredictable results.
Example(s)
See also
Referenced by
1 topic mentions %close() function in its description.