I’m new to MFC programming. I have to write an application that reads a config file to initilize the application. The config file format is something like:
server={192.168.1.254;8080}
device={panasonic}
printer={172.168.10.50;9100}
I want to know how to read each key and its value and then write new values back to the config file. If you can give me code example, i would greatly appreciate your kindness
Use the
.iniformat, MFC has support for that.Check the documentation, look for the “.INI” entries.