Go to documentation repository
The WriteIni method is used to write the string variable to the ini file.
Syntax for method invocation:
function WriteIni(varName: String, varValue: String, path: String)
Method argument:
varValue is a required argument. It specifies the value of the variable.
path is a required argument. It specifies the full path to the ini file in which the variable must be stored. Storage of variables can be placed on the network resource. To do this, enter the network path in the argument.
Example. Write the MyVar variable to the \\fileserver\temp\test.ini file and set the "Hello world!" value to it. Then read the written value and display it in the script debug window.
WriteIni("MyVar", "Hello world", "\\\\fileserver\\temp\\test.ini"); var result = ReadIni("MyVar","\\\\fileserver\\temp\\test.ini"); DebugLogString(result);