Read a configuration file