I was wondering if anyone had a nice efficient way to write integer values into a INI file.

I know WinAPI has a WritePrivateProfileString but I want to write an int value.. not a string.

Any help would be nice.

Posted on 2002-02-07 20:41:43 by Torch

Its really simple, you can write any numerical value you like directly to any offset in a file that you open. Just set the file pointer where you want and write the numerical data to it.

You only bother to write it as a string if it needs to be read or modified by a person who wants readable form.


Posted on 2002-02-07 20:50:18 by hutch--