C# configuration file read and write source code