KeyFile.setComment

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

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.

Parameters

groupNamea group name, or null
keya key
commenta comment

Returns

true if the comment was written, false otherwise

Throws

[KeyFileException]