I have a original config file which I found a very nice way to read. Like this:
myDict = {}
cfg = file(configFile, 'r').readlines()
myDict = eval('\n'.join(cfg))
This gets my file's contents in to myDict very nicely. But what is a simple looking way to make changes to its contents and create/write to a new modified file? thanks