Name
CloseFile Procedure
Syntax
procedure CloseFile(var F: File); procedure CloseFile(var F: TextFile);
Description
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.
Errors
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.
See Also
Append Procedure, AssignFile Procedure, IOResult Function, Reset Procedure, Rewrite Procedure |
Get Delphi in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.