Hi all,
I run some tests about mixed using WritePrivateProfileString and stand file operations
Codes look like this:
GetPrivateProfileString(keyname, value);
fopen();
fprintf("# comments");
fclose();
WritePrivateProfileString(keyname, newvalue);
What I found in the file is that either WritePrivateProfileString operation succeeded(newvalue has been written) or fprintf succeeded("#comments" shows up in the file).
On windows hosts, there is no such problem.
Any suggestion or idea is welcomed.
Thanks.
Milo