Read configuration from file