Writes content from the config to specified files