Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

CLOSE

Description

The CLOSE statement is used to close an opened file, which is no longer required. The statement can be used as:

CLOSE variable {, variable ...}

The variable list should contain a list of previously opened file variables that are no longer needed. The variables will be cleared and may be reused as ordinary variables.

Note:

It is possible to have an unlimited amount of files open within jBASE BASIC, however leaving them open consumes valuable system resources. It is good practice to hold open only those file descriptors that are constantly accessed.

An example of use is as:

OPEN "DATAFILE" TO FILEVAR ELSE ABORT 201, "DATAFILE"
*Operations on file data 
CLOSE FILEVAR


Go back to jBASE BASIC.

Was this article helpful?