KeyFile.saveToFile
bool saveToFile(string filename)Writes the contents of key_file to filename using glib.global.fileSetContents. If you need stricter guarantees about durability of the written file than are provided by glib.global.fileSetContents, use glib.global.fileSetContentsFull with the return value of glib.key_file.KeyFile.toData.
This function can fail for any of the reasons that glib.global.fileSetContents may fail.
Parameters
filename | the name of the file to write to |
Returns
true if successful, else false with error set