Filename of file to read from.
Reference to an associative array of string arrays of expected configuration entries that were missing.
Reference to an associative array of string arrays of unexpected configuration entries that did not belong.
Reference variadic list of things to set values of, according to the text in the configuration file.
IRCClient client; IRCServer server; string[][string] missingEntries; string[][string] invalidEntries; "kameloso.conf".readConfigInto(missingEntries, invalidEntries, client, server);
Reads a configuration file and applies the settings therein to passed objects.
More than one object can be supplied; invalid ones for which there are no settings in the configuration file will be silently ignored with no errors. Orphan settings in the configuration file for which no appropriate object was passed will be saved to invalidEntries.