Y_INI Question.
#1

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"
Код:
[SOME_FILE]
someinteger=7894
somefloat=154.15141
somestring=trololololol
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.
Reply
#2

Quote:
Originally Posted by iPLEOMAX
Посмотреть сообщение
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"
Код:
[SOME_FILE]
someinteger=7894
somefloat=154.15141
somestring=trololololol
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.
How is it being saved?
Reply
#3

Make a new INI parse file function ?!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)