RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIniFile.WriteString Method

Writes a string value to an INI file.

Pascal
procedure WriteString(const Section: String; const Ident: String; const Value: String); override;
C++
virtual __fastcall WriteString(const AnsiString Section, const AnsiString Ident, const AnsiString Value);

Call WriteString to write a string value to an INI file. Section identifies the section in the file that contain the key to which to write. Ident is the name of the key for which to set a value. Value is the string value to write.

Note: Attempting to write a data value to a nonexistent section or attempting to write data to a nonexistent key are not errors. In these cases, WriteString creates the section and key and sets its initial value to Value.
This version of WriteString is only available if the application is compiled for Windows. On Linux, WriteString is inherited from TMemIniFile

 

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