Function ConfigFile.setValue

Assigns a value to the specified key of the specified section. If the section and/or the key do not exist, they are created. Passing a null value deletes the specified key if it exists, and deletes the section if it ends up empty once the key has been removed.

void setValue(VariantArg2) (
  in String section,
  in String key,
  in VariantArg2 value
);