RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
System.Close Function

Terminates the association between a file variable and an external file.

Pascal
procedure Close(var F);
C++
Close( F);

System

Close is provided for backward compatibility with existing code. When writing new applications in Delphi, use CloseFile instead. 

F is a file variable of any file type opened using Reset, Rewrite, or Append. The external file associated with F is completely updated and then closed, freeing the file handle for reuse. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!