RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMemIniFile.UpdateFile Method

Flushes buffered INI file data to disk.

Pascal
procedure UpdateFile; override;
C++
virtual __fastcall UpdateFile();

Call UpdateFile to copy INI file data stored in memory to the copy of the INI file on disk UpdateFile overwrites all data in the disk copy of the INI file with the INI file data stored in memory. 

If the Rename method is used to change the INI file the TMemIniFile uses, UpdateFile copies the INI file data in memory to a file of the new name. If the file does not already exist, it is created. If the new file already exists, it is overwritten. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!