An INI file is a configuration file that stores constants used in a program. The file consists of sections and keys. Keys are grouped in different sections. This recipe extracts the values from all keys within an INI file and stores them in a cluster so that the values can be retrieved within a program.
To read the values of all keys within an INI file, we create a state machine to iterate through the file, using following steps: