Reading and Writing .INI Files

11/11/2008 09:20 5hoursez#1
[Only registered and activated users can see links. Click Here To Register...]

I found this information useful for starting out on understanding more about the code for read/write ini files. Maybe this will help some others (That are willing to read) :D

enjoy
11/12/2008 07:26 EXTEЯNAL#2
i know a better way ^.^

Code:
GetPrivateProfileString("Block","anythink","NULL",test,destSize,"c:\\test.ini");
WritePrivateProfileString("Block","anythink",test,"c:\\test.ini");
now the ini looks like
Code:
[Block]
anythink=0
hf ^^
11/16/2008 14:15 unknownone#3
Better? but unportable. Those are Win API specific functions and useless elsewhere.

Ini files are a thing of the past anyway. They should only be used for compatability with existing implementations or for learning file i/o and string manipulation. Use XML instead :)