Fclose – Visara Master Console Center Scripting Guide User Manual
Page 103
Advertising

Chapter 5 Script Commands
Scripting Guide
103
FCLOSE
Syntax:
FCLOSE( %FileNum)
Description:
Closes an open file.
Action:
Closes a file opened with FOPEN().
Parameters:
%FileNum. Numeric expression. The file handle obtained from
FOPEN(). The file to close.
Returns:
Numeric value. 0 (zero) when the file is successfully closed. This maps
to manifest ERR_NONE.
Notes:
If FCLOSE is passed a bad file handle, an execution-time error is
generated.
Example:
%Handle := FOPEN( “SYS5”, OVERWRITE)
// ... file processing commands
FCLOSE( %Handle)
See Also:
FDELETE, FEXISTS, FOPEN, FREAD, FRENAME, FREWIND,
FWRITE
Advertising