KeyFile.saveToFile

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.

class KeyFile
bool
saveToFile
(
string filename
)

Parameters

filename string

the name of the file to write to

Return Value

Type: bool

true if successful, else false with error set