I'm wondering if anyone has a tried and true method of preceding .ini file sections with comments? I've tried just generally sticking comments at the beginning by deleting the file, creating the file, writing comment lines, then closing the file. Then using the standard .ini file functions to put values in sections etc..
But I ran into side effects where even if I flush the file and close the file and delay before adding values using the .ini file functions, the file gets corrupted.
Seems