8 File Storage

Closing a File

The ASSIGN statement is also used to close a file. Any subsequent attempts to access that file number result in an error. Syntax of the ASSIGN statement to close a data file is as follows:

For example, this statement closes file number 1:

310  ASSIGN * TO #1
A file is also automatically closed by executing the following operations:

File Table Reset Conditions
Operation Files Closed (X) All Files Closed (X) All Except COM
LOAD X
GET X
RUN X
STOP X
END X
SCRATCH X
SCRATCH V X
SCRATCH P X
   
SCRATCH AX 
SCRATCH CX 
   
Subprogram Return*  

* All files opened in subprogram, but not passed via COM or parameters, are closed.


Eloquence Language Manual - 19 DEC 2002