Sign in Join
FPDoc Onlineexperiment

TIniFile.UpdateFile procedure

Member of TIniFilepublicIn unit IniFiles

Update the file on disk.

Declaration

pascal
procedure UpdateFile; override

Description

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).

Errors

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

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.