System.IniFiles.TIniFile.WriteString

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure WriteString(const Section, Ident, Value: String); override;

C++

virtual void __fastcall WriteString(const System::UnicodeString Section, const System::UnicodeString Ident, const System::UnicodeString Value);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IniFiles.pas
System.IniFiles.hpp
System.IniFiles TIniFile

Description

Writes a string value to an INI file.

Section identifies the section in the file that contains 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.

See Also

Code Examples