The predefined procedure disassociate
removes the logical-physical file association that was previously
created with the standard procedure associate.
As a result, you can no longer use the file f
with Pascal input and output routines.
Syntax
Parameters
Title not available (Disassociate Procedure )
- f
A variable of type file.
Normally, a file is closed on exit from the block in which
it is declared. A disassociated file, however, remains open until
it is closed with a direct call to an operating system routine.
Disassociate
is useful on a file that is opened by a non-Pascal routine that
is passed to a Pascal routine and must remain open on exit from
the Pascal routine.