KeyFile.removeComment

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

class KeyFile
bool
removeComment
(
string groupName = null
,
string key = null
)

Parameters

groupName string

a group name, or null

key string

a key

Return Value

Type: bool

true if the comment was removed, false otherwise