[Overview][Types][Classes][Index] Reference for unit 'IniFiles' (#fcl)


Update the file on disk


Source position: inifiles.pp line 246

public procedure TIniFile.UpdateFile; override;


UpdateFile writes the in-memory data for the ini file to disk. The whole file is written. If the ini file was instantiated from a stream, then the stream is updated. Note that the stream must be seekable for this to work correctly. The ini file is marked as 'clean' after a call to UpdateFile (i.e. not in need of writing to disk).


If an error occurs when writing to stream or disk, an exception may be raised.

See also



Should changes be kept in memory

Documentation generated on: May 14 2021