Language:
Русский
English
Close (procedure)
Closes an open file.
Declaration
procedure Close(var F);
Target
Windows, Real, Protected
Remarks
F is a file variable of any file type previously opened with Reset, Rewrite, or Append. The external file associated with F is completely updated and then closed, freeing its DOS file handle for reuse.
With {$I-}, IOResult returns zero if the operation was successful; otherwise, it returns a nonzero error code.