How to read a single value from a file with Y_INI?
#1

I know that it was designed to read whole files but sometimes you just don't need that.

I would need something like this: GetValueFromFile(file[], name[]);

And then you do something like: GetValueFromFile("Someone's_Account", "Score"); and the function would return the value of Score.

Could you help me make that function? Or at least provide some advice?

Thank you.
Reply
#2

Just load all the things from that players account and assign arrays to them, so you can refer back to the score, so on. Pretty much a simple loading and saving system.
Reply
#3

Be more specific, are you talking about loading a value from a file?
Reply
#4

@Dr, yes that could be a possible solution, but 1 variable is simpler

@kush, Yes.

---------------------------

BUMP.
Reply
#5

BUMP.
Reply
#6

There is no other methode with y_ini

Even is there were it would be a waste if you use it more as once in a row
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)