there is thrown an exeption (config.txt is not writable) if the config.txt does not exist. This exeption should only be thrown if the file exists. There should be a new exception e.g. "file could not be written" if adding the new file fails.