Read lines from Inoutput object file, in format key = value and set entries in the Dictionary dict. Skips lines starting with a #. If do_check is true then finish by checking if all mandatory values have been specified. Returns false if there was a problem reading the file, or if the check for mandatory parameters fails.
Dictionary of registered key/value pairs
File to read from
Should we check if all mandatory parameters have been given