KeyFile.setComment

Places a comment above key from group_name.

If key is null then comment will be written above group_name. If both key and group_name are null, then comment will be written above the first group in the file.

Note that this function prepends a '#' comment marker to each line of comment.

class KeyFile
bool
setComment
(
string groupName
,
string key
,
string comment
)

Parameters

groupName string

a group name, or null

key string

a key

comment string

a comment

Return Value

Type: bool

true if the comment was written, false otherwise