Dini Problems
#4

It automatically opens/closes/reads/& and writes to the file and the data is read/written directly from the/to the file you are trying to read/write when using the dini Functions, as coded in the DINI include.


pawn Код:
//Writing a value to a file
dini_IntSet("settings.ini", "Locked", 1); //This will write to the file "Locked="1" (Key=Value) | dini_IntSet(file, Key, Value)

//Reading a value from a file
new Locked; //We will use this to store the value from the file key.

Locked = dini_Int("settings.ini", "Locked"); //Read the value from the file and store it in the variable "Locked"

if(Locked == 1) print("The key "Locked" in "settings.ini" was set to '1'");
Reply


Messages In This Thread
Dini Problems - by WhiteAngels - 08.07.2014, 01:24
Re: Dini Problems - by ABKPot - 08.07.2014, 02:16
Re: Dini Problems - by WhiteAngels - 08.07.2014, 02:32
Re: Dini Problems - by ABKPot - 08.07.2014, 02:53
Re: Dini Problems - by WhiteAngels - 08.07.2014, 02:56
Re: Dini Problems - by ABKPot - 08.07.2014, 02:58

Forum Jump:


Users browsing this thread: 2 Guest(s)