why isn't my config file write function not writing anything

14 hours ago 2
ARTICLE AD BOX
void writeToConfig(const char* key, const char* value) { string writable = key + (string)"=" + value; fstream config; string check; config.open(configDirectory); config << writable + (string)"\n"; config.close(); }

the button and file dialog work fine but the config write function fails to write anything to the file and it needs to override existing key values in the file with a new value for that same key such as: "compilerHome=C:\\MinGW\\bin" but it writes nothing into the project.cfg file

Read Entire Article