Opening a file, writing in it, then closing the file.
#1

Hello,
The title says it, I want to know how to do this for Y_INI.
I can make the CMD, I just need the code to make this possible.
Thanks.
Reply
#2

Look up a tutorial.
Reply
#3

I can't find one, that's why I asked here.
Reply
#4

I won't use this, but i can help you with SII...
pawn Код:
INI_Open(filename); // Open / Create a file
INI_WriteString("Tag", "string"); // Write string with tag into 'filename' files
INI_WriteInt("Tag", value); // write a integer with tag into 'filename' files
INI_WriteFloat("Tag", float value); //write a float value with tag into 'filename' files
INI_ReadString(var, "Tag", size); //copy 'Tag' str value to 'var' for read...
INI_ReadInt("Tag"); //read integer per 'tag'
INI_ReadFloat("Tag"); //read float value per 'tag'
INI_Exist(filename); //verify if filename file exists
INI_Save(); //Save filename
INI_Close(); //close filename
Reply
#5

Thanks William.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)