I am writing profiles to a .ini file, no problem using API's.
How can I delete a profile? All the API's seem to do is either Write or Get.
Thanks.
Printable View
I am writing profiles to a .ini file, no problem using API's.
How can I delete a profile? All the API's seem to do is either Write or Get.
Thanks.
An .InI file is nothing more than a formatting text file so IMO the least painful way would be to read your .InI file into a textbox, remove what you don't want, then write the contents of the textbox back to your .InI file.
If you write a profile with a null key the entire section is deleted.