Hi,

Wondering if anyone here is aware of a way to make WriteProfileString useful when attempting to write or update INI-like configuration files that don't have or use [SECTION] structure.

In other words, the file is not broken into (and has no) sections, instead it's just:

parm1=xxxxx
parm2=yyyyyyyyyyyy
.....
parmx=zzzzzzzzzzzzzzzzzzzzzz

I've tested it a little. It's not possible to omit or provide a blank parm2 when calling WriteProfileString and see that it doesn't work.

I know it'd be fairly easy to write something to read/write the file, but WriteProfileString is so much easier.

Any ideas?

Thanks.