CLOSE statement

Purpose: The CLOSE statement causes the file stream associated with FileHandle to be flushed and the file to be closed.


 Syntax 1:

 CLOSE FileHandle

 Parameters:

  • FileHandle Handle to one file to be closed. CLOSE fp1, fp2 is not allowed.

 Syntax 2:

 CLOSE

 Parameters:

  • Remarks Closes all open file handles.

See the OPEN statement page for more details.

Example:


 CLOSE fp1

BCX Console Sample Programs using CLOSE statement.

S10.bas, S82.bas, S103.bas, S113.bas, S115.bas