INI Reader

by Audeuro
Want to write up a nice .ini file for configuration? Here's just the utility to do it with! [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Audeuro.ini_reader##version=23

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:


Version 19
Date added: Jul 26 2006
Last updated: Aug 6 2009
14 fans
INI Reader is a useful tool that I ported over from VB6 while writing another game that required it. Currently it can read as well as write standard .cfg and .ini files.

Version 19
- The dictionary wasn't always being created.
- Numbers other than 0 would not save properly.
- If the value of a key/value pair was set to 0, then it would not be written to the dictionary.

Version 18
- Made another step to support the traditional INI comment of ";," in addition to // and /* */.

Version 15
- Fixed a bug with lists outputting. To save a list, create a new /slist object, and set slist.Item to your list, then write it to the proper spot.

Version 14
- Added support for lists. To create a list, simply do: "Key = <Item1,Item2,...>" Note: Lists within Lists ARE supported.

Version 12
- Fixed a problem where it'd add numbers to the list as a string, when it should've converted it to a number first.