Go to documentation repository
The WriteIniAny method is used
...
to write a string variable to an ini
...
file. Unlike the WriteIni method, in the WriteIniAny method you can specify the required file section for writing.
...
Syntax for method invocation:
| Code Block |
|---|
function WriteIniAny(varName: String, varValue: String, path: String, section: String) |
Method arguments:
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
...
Example. Write the MyVar variable to the "config" section of the C:\\Backup\\test2.ini file, and
...
set the "Hello world!" value to it. Then read the written value and display it in the debug window of the script.
| Code Block |
|---|
WriteIniAny("MyVar", "Hello world!", "C:\\Backup\\test2.ini", "config");
var result = ReadIniAny("MyVar","C:\\Backup\\test2.ini", "config");
DebugLogString(result); |
...