Click here to return to the KiXtart HelpDesk main page...

KiXtart 2001 Manual

Close( )

Action: Closes a file previously opened by the OPEN function.
 
Syntax: CLOSE (file number)
 
Parameters: File number

A numeric expression indicating the file number of the file to close. Possible values range from 1 to 10.

Returns:
0 File Closed
-2 Invalid File Number Specified 
 
See Also: Open( ), ReadLine( ), WriteLine( )
 
Example:

If Close(3)
  Beep
  ? "Error closing file!"
ENDIF