Class: cIniFile¶
Include: Use System\Ini.pkg
Hierarchy: cObject -> cIniProcessor -> cIniFile
Package: System\Ini.pkg
cIniFile provides section/key read, write, delete, and existence calls for INI files.
Methods¶
See Methods.
| Name | Purpose |
|---|---|
| WriteString | Writes one value. |
| ReadString | Reads one value. |
| DeleteSection | Deletes a section. |
| DeleteKey | Deletes a key. |
| KeyExists | Checks whether a key exists. |
| SectionExists | Checks whether a section exists. |
Example¶
Handle hoIni
String sHost
Get Create (RefClass(cIniFile)) to hoIni
Send WriteString of hoIni "server" "host" "localhost"
Get ReadString of hoIni "server" "host" "" to sHost
Send Destroy of hoIni