read some config items from a file.