-
Declaration:
- Procedure CloseFile(Var F: FileType);
-
Description:
- CloseFile flushes and closes a file F of any file type. F can be Text or a typed or untyped
File variable. After a call to CloseFile, any attempt to write to the file F will result in an
error.
It is most likely introduced to avoid confusion between the regular Close (462) function and
the Close method of TForm in the Delphi VCL.
-
Errors:
- None.
-
See also:
- Close (462), AssignFile (594), Reset (555), Rewrite (556), Append (449)
for an example, see AssignFile (594).