INI module

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

Previous topic - Next topic
February 23, 2019, 03:09:40 PM Last Edit: January 01, 1970, 01:00:00 AM by Guest

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]

October 02, 2021, 04:50:25 PM #1 Last Edit: January 01, 1970, 01:00:00 AM by Guest
Hello, are you russian? I see that you use yadisk :)

I need some help of configure server.