Configuration file reader and writer