GLib.KeyFile.prototype.set_string
function set_string(group_name: String, key: String, string: String): void { // Gjs wrapper for g_key_file_set_string() }
Associates a new string value with key under group_name. If key cannot be found then it is created. If group_name cannot be found then it is created. Unlike GLib.KeyFile.prototype.set_value, this function handles characters that need escaping, such as newlines.
Since 2.6
- group_name
a group name
- key
a key
- string
a string