Read settings from a configuration file