First of all you must set attributes of lines, todetermine what line it is. It can be done in many ways, but two of them ispretty easy.1. Ini files. https://en.wikipedia.org/wiki/INI_file Entry offile will be like some_info... Account=1247676745 Number=1558345 Name=John More_info...2. xml files Entry: <params> <Account> 128676346 </Account> <Number > 1558345 </Number > <Name > John </Name > Someother data </params> To parse and edit such file you can opn them with readand write mode(https://www.cplusplus.com/doc/tutorial/files/)using ios::in | ios::out mode.Or use this thing for c++https://www.codeproject.com/Articles/17353/XML-Application-Profile-Class
Comments