KeyFile.getString

string getString(string groupName, string key)

Returns the string value associated with key under group_name. Unlike [glib.key_file.KeyFile.getValue], this function handles escape sequences like \s.

In the event the key cannot be found, null is returned and error is set to G_KEY_FILE_ERROR_KEY_NOT_FOUND. In the event that the group_name cannot be found, null is returned and error is set to G_KEY_FILE_ERROR_GROUP_NOT_FOUND.

Parameters

groupNamea group name
keya key

Returns

a newly allocated string or null if the specified

key cannot be found.

Throws

[KeyFileException]