get_string


Description:

public string get_string (string group_name, string key) throws KeyFileError

Returns the string value associated with key under group_name.

Unlike [method@GLib.KeyFile.get_value], this function handles escape sequences like `\s`.

If the key cannot be found, [error@GLib.KeyFileError.KEY_NOT_FOUND] is returned. If the group_name cannot be found, [ error@GLib.KeyFileError.GROUP_NOT_FOUND] is returned.

Parameters:

this

a key file

group_name

a group name

key

a key

Returns:

a newly allocated string or `NULL` if the specified key cannot be found.