Storing and loading configuration from file