Adding new strings to an existing INI file
#4

Here's an example of writing data to an INI file with y_ini:

pawn Код:
new INI:ini = INI_Open("myini.ini");
INI_SetTag(ini, "LVDM");
INI_WriteString(ini, "NAME", "******");
INI_WriteInt(ini, "SCORE", gScore);
INI_Close(ini);
So as you can see, you're basically doing the following:

opening the file
writing a string
writing an integer
closing the file
Reply


Messages In This Thread
Adding new strings to an existing INI file - by rhds - 25.03.2013, 19:25
Re: Adding new strings to an existing INI file - by Scenario - 25.03.2013, 19:31
Re: Adding new strings to an existing INI file - by rhds - 25.03.2013, 19:36
Re: Adding new strings to an existing INI file - by Scenario - 25.03.2013, 19:39
Re: Adding new strings to an existing INI file - by Glad2BeHere - 25.03.2013, 19:39
Re: Adding new strings to an existing INI file - by rhds - 25.03.2013, 19:42

Forum Jump:


Users browsing this thread: 2 Guest(s)