I've been making a plugin (an advanced version of sm_addadmin) to parse through admins.cfg and admin_groups.cfg by using Keyvalues (since they are in that format).
I am having trouble actually changing values in the admins.cfg file though (such as the auth key). It says it manages to delete the key then I force it to be created.
I don't know how to actually save the new keyvalues to an existing file as I have only ever used keyvalues to get information, never write it.