CLOSEF - close file in use by Pascal program.

Usage:

var f : text;
...
openf(f, ...);
...
closef(f);

Description:

CLOSEF closes the file that was attached to the Pascal file variable "f" by a call to OPENF. Any output buffers are flushed, and the file is removed from the AFT (if it was not there before the call to OPENF).

Although it is good practice to call CLOSEF for all opened files, it may not be necessary; when a Pascal program exits, all open files are closed automatically.

Copyright © 1996, Thinkage Ltd.