ini file parsing

Posted By: Joey

ini file parsing - 04/19/07 19:42

i've written an ini file parser where you can read ini files separated by [sections] and name=value pairs.

http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/746281/an/0/page/0

i haven't tested it, though, so i would be pleased if someone could do this for me.
greetings, joey.
Posted By: qwerty823

Re: ini file parsing - 04/21/07 00:43

The api.def already has the winapi functions defined for reading/writing ini files.

GetPrivateProfileInt;kernel32!GetPrivateProfileIntA
GetPrivateProfileString;kernel32!GetPrivateProfileStringA
WritePrivateProfileString;kernel32!WritePrivateProfileStringA
GetPrivateProfileSection;kernel32!GetPrivateProfileSectionA
WritePrivateProfileSection;kernel32!WritePrivateProfileSectionA
Posted By: sheefo

Re: ini file parsing - 04/21/07 11:54

I use those API functions. You can make an INI parser in under 20 lines of code.
You can even save settings
Posted By: Joey

Re: ini file parsing - 04/21/07 16:33

there's always an easier way to acheive things
© 2024 lite-C Forums