Read config from a file.