[Overview][Constants][Types][Procedures and functions][Variables] | Reference for unit 'objpas' (#rtl) |
Close text or untyped file
Source position: line 0
procedure CloseFile( |
var f: file |
); |
var t: Text |
); |
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 function and the Close method of TForm in 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 |
No notes exist for this page yet.