[Overview][Constants][Types][Procedures and functions] |
Close text or untyped file
Source position: line 0
procedure CloseFile( |
var f: |
); |
var t: Text |
); |
CloseFileflushes and closes a file Fof any file type. Fcan be Textor a typed or untyped Filevariable. After a call to CloseFile, any attempt to write to the file Fwill result in an error.
It is most likely introduced to avoid confusion between the regular Closefunction and the Closemethod of TFormin the Delphi VCL.
for an example, see AssignFile.
None.
|
Close a file |
|
|
Assign text or untyped file |
|
|
Open file for reading |
|
|
Open file for writing |
|
|
Open a file in append mode |