First of all you must set attributes of lines, to
determine what line it is. It can be done in many ways, but two of them is
pretty easy.
1. Ini files. https://en.wikipedia.org/wiki/INI_file
Entry of
file 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 >
Some
other data
</params>
To parse and edit such file you can opn them with read
and 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
Leave a comment