EWS::readini provides object-oriented read access to ini-type files.
EWS::readini uses EWS::fileIO as a base-class. All EWS::fileIO methods and attributes are available through EWS::readini. Additional methods are provided to load ini-type files into an EWS::variable object.
Parameters are loaded from the ini file into the EWS::variable object. New variables are created by concatenating the ini file section name with an underscore (_) character and the parameter name:
Example:
the sample ini file segment
[thumbnail]
width=150
height=150
will create the following variables:
thumbnail_width
thumbnail_height
EWS::readini provides the following class methods and attributes:
Public Methods | Description |
---|---|
new | Returns a blessed reference to a new readini object. |
load | Load variables and values from open ini file to variables object. |