Main Menu

INI module

Started by Lucy, February 23, 2019, 03:09:40 PM

Previous topic - Next topic

Lucy


INI module

Installation

Add to your server.xml in <modules> section]
<module src="INI" />
[/code]

Example

ptr = module.ini.create();

ptr.loadFile("abc.txt")

ptr.setString("Section", "Test", "Hello world!", "Comment example");

ptr.saveFile("abc.txt")

module.ini.delete(ptr);

Functions/props availables
[spoiler]
* ptr.errno(int errid)

* ptr.reset();

* ptr.delete(string szSection, string szKey, bool bRemoveEmpty = true);

* ptr.isEmpty();

* ptr.isMultiKey();

* ptr.isMultiLine();

* ptr.isUnicode();

* ptr.isUsingSpaces()

* ptr.setUnicode(bool bUnicode)

* ptr.loadFile(string szFile)

* ptr.saveFile(string szFile, bool bSign)

* ptr.getBoolValue(string szSection, string szKey, bool bDefaultValue = false)

* ptr.getIntValue(string szSection, string szKey, int iDefaultValue = 0)

* ptr.getFloatValue(string szSection, string szKey, float fDefaultValue = 0.0)

* ptr.getString(string szSection, string szKey, string szDefaultValue = "")

* ptr.setBoolValue(string szSection, string szKey, bool bValue, string szComment = "", bool bForceReplace = false)

* ptr.setIntValue(string szSection, string szKey, int iValue, string szComment = "", bool bUseHex = false, bool bForceReplace = false)

* ptr.setFloatValue(string szSection, string szKey, float fValue, string szComment = "", bool bReplace = false)

* ptr.setString(string szSection, string szKey, string szValue, string szComment = "", bool bForceReplace = false)
[/spoiler]

https]Download[/url]

simon_2021

#1
Hello, are you russian? I see that you use yadisk :)

I need some help of configure server.