Archive: FlushINI ...when to use?


FlushINI ...when to use?
Hello all.

I'm building an installer, and need to add some lines to an ini file. I'm using WriteINIStr to do the job. Do I need to use FlushINI for my Win98 customers? I found the search results in the forums to be a bit confusing, where some say you only need it when deleting an ini on Win98, while others say you need it even when just modifying INIs on Win98. In my testing, it seems to work fine without FlushINI, but I just wanted to be sure. Thanks.

Jnuw


You usually want to use it anytime you write something to an INI file. It ensures that what you want written to a file actually gets written instead of just storing tha values in memory.

I find this especially useful at times when I need to turn around and read something I just wrote.