parses a .ini file