March 2000
Intermediate to advanced
576 pages
18h 13m
English
CloseFile Procedure
procedure CloseFile(var F: File); procedure CloseFile(var F: TextFile);
Call CloseFile to close a file that was opened
with Append, Reset, or
Rewrite. CloseFile is not a
real
procedure.
For an example, see the AssignFile procedure.
If you call CloseFile for a file that is already
closed, Delphi reports I/O error 103.
If you try to close a file but have not yet called
AssignFile, the results are unpredictable.
| Append Procedure, AssignFile Procedure, IOResult Function, Reset Procedure, Rewrite Procedure |
Read now
Unlock full access