17.08.2011, 17:52
Hello guys.
I've been using 'INI_ParseFile' always for most things.. I know how to use that quite well.
But now I came across something where i need just a single value from an ini file.
(Example)
This is "somefile.ini"
So, how can I just read a single entry in the file, without going for making a long code...
Like INI_Int(file, "someinteger"); will give me 7894 which doesn't seem to work cause I have no idea what I'm doing.
Any help is appreciated.
I've been using 'INI_ParseFile' always for most things.. I know how to use that quite well.
But now I came across something where i need just a single value from an ini file.
(Example)
This is "somefile.ini"
Код:
[SOME_FILE] someinteger=7894 somefloat=154.15141 somestring=trololololol
Like INI_Int(file, "someinteger"); will give me 7894 which doesn't seem to work cause I have no idea what I'm doing.
Any help is appreciated.