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 Код:
dini_IntSet("settings.ini", "Locked", 1); //This will write to the file "Locked="1" (Key=Value) | dini_IntSet(file, Key, Value)
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) printf("The key "Locked" in "settings.ini" was set to '1'");