OSCLOSE

Closes a previously opened OS file.

 

COMMAND SYNTAX

OSCLOSE FileVar {ON ERROR Statements}

 

SYNTAX ELEMENTS

FileVar Specifies the file to close.
ON ERROR Statements Conditional jBC statements to execute if the OSCLOSE statement fails with a fatal error because the file is not open, an I/O error occurs, or jBASE cannot find the file. If you do not specify the ON ERROR clause and a fatal error occurs, the program terminates.

 

NOTES

The jBC OSCLOSE command closes a sequential file that you opened with the OSOPEN statement.

 

EXAMPLES

OSCLOSE MYFILE

 

RELATED COMMANDS

OSOPEN, OSBREAD, OSBWRITE, OSREAD, OSWRITE, OSDELETE


jBC