updateIni

Adds or updates a value in an INI file.

If the value is already in the INI file, then it is updated in-place; otherwise, a new one is added to the matching section.

Whitespace and comments on other lines are preserved.

void
updateIni
(
S
)
(
ref S[] lines
,,)

Parameters

lines S[]

INI file lines (as in parseIni)

name S

fully-qualified name of the value to update (use . to specify section path)

value S

new value to write

Meta