31.01.2010, 15:40
Hi All,
This system works on cache, these can either be changed or read, on the end can everything stored & closed, no unnecessary access to the File
>> Functions >>
o Reads the File and Load it into the Cache / Vars
o Read the Key as String
o Return the Key as Float
o Return Key as Integer
o Set the Key as String
o Set the Key as Integer
o Set the Key as Float
o Save all Values in Cache to File
o Close the File ( Clean the Cache )
o Check the Key
o Remove the Key
o Create a File
This System can Read Keys from Dini & SII Systems , Have Fun ^^
Test :
* Changes 1.Feb 2010 *
One Core Function Updated
This system works on cache, these can either be changed or read, on the end can everything stored & closed, no unnecessary access to the File
>> Functions >>
Code:
OpenINI(const file[]);
Code:
ReadStringKey(const keyname[]);
Code:
ReadFloatKey(const keyname[]);
Code:
ReadIntKey(const keyname[]);
Code:
SetKeyString(const keyname[],const value[]);
Code:
SetKeyInt(const keyname[],const value);
Code:
SetKeyFloat(const keyname[],const Float:value);
Code:
SaveINI();
Code:
CloseINI();
Code:
KeyIsSet(const keyname[]);
Code:
UnsetKey(const keyname[]);
Code:
CreateINI(const file[])
This System can Read Keys from Dini & SII Systems , Have Fun ^^
Test :
Code:
if(OpenINI("Filename.ext")) { SetKeyString("Keyname","Hello World"); printf("The Key Value ist : %s",ReadStringKey("Keyname")); SaveINI(); CloseINI(); }
One Core Function Updated