hsini-0.5.1.2: ini configuration files

Data.Ini

Description

A representation of configuration options. It consists of sections, each which can contain 0 or more options. Each options is a key, value pair.

This module contains the API for constructing, manipulating, and querying configurations.

Synopsis

# Documentation

Constructs an empty configuration.

Returns True iff the configuration has a section with that name.

Returns the section with the given name if it exists in the configuration.

Returns a list of the names of all section.

Removes the section if it exists.

Returns True if the names section has the option.

Returns the value of the option, if it exists.

Returns a list of all options in the section.

Sets the value of the option, adding it if it doesn't exist.

Removes the option if it exists. Empty sections are pruned.

Returns all options and their values of a section.