Fixes #5058: add method to ensure lhs=rhs in files

Why false? It would make sense to me to be able to create the file if non existant, if I just read in a list of parameters and want to "dump" them in a file.