Writes a value to a standard format .ini file.
||The filename of the .ini file.
||The section name in the .ini file.
||The key name in the in the .ini file.
||The value to write/change.
||Returns 0 if file is read-only.
A standard ini file looks like:
If file does not exist, it is created. Any directories that do not exist, will not be created. Keys and/or sections are added to the end and are not sorted in any way."?
When writing a value that is quoted, the quotes are stripped. In order to write the quote marks to the value, you must double up the quoting. For example: ""This is a test"" will produce "This is a test" in the file.
Leading and trailing whitespace is stripped. In order to preserve the whitespace, the string must be quoted. For example, " this is a test" will preserve the whitespace but per above, the quotation marks are stripped.
Multi-line values are not possible.
IniDelete, IniRead, IniReadSection, IniReadSectionNames, IniWriteSection, IniRenameSection
IniWrite("C:\Temp\myfile.ini", "section2", "key", "this is a new value")