Writes a value to a windows INI file.
Usage:
iniWrite (object me, string section, string key, string value, string filePath )
Parameters:
section (string) - The section name in an INI file excluding the [ ] signs
key (string) - The key name in a INI file without the trailing = sign
value (string) - The string value to store in the INI file
filePath (string) - The path to an existing INI file
Returns:
(integer) - The success code
Example:
-- creates a director ini file to allow only single instance of the projector, and display full lingo errors
xtRose = xtra("Rosetta").new( )
-- get the moviename without file extension
strMovieName = the movieName
nLen = strMovieName.length
delete strMovieName.char[(nLen-2)..nLen]
xtRose.iniWrite( "Settings", "SingleInstance", "1", the moviepath&strMovieName&"ini" )
xtRose.iniWrite( "Lingo", "DisplayFullLingoErrorText", "1", the moviepath&strMovieName&"ini" )
Notes:
When the section and key already exist, iniWrite will overwrite the existing value. If the ini file doesn't exist, a new file will be created.