I wasn't counting the "glue" code.. ;\)

I'm thinking that a ReadProfileString to determine if the value exists in the section (maybe) and a WriteProfileString to update it is all that would be necessary to change the setting. It depends on whether the value "must contain specific data IF it exists" or the value "must exist with specific data".

Enumerating an INI file via traditional file read/write methods can become convoluted by comparison to using EnumINI to get a list of sections, and a loop of Read & WriteProfileString calls to check for and update the data.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D