Answer to Question #27280 in C++ for Michael O' Callaghan
In C++ ,using Borland, how can you extract data such as Account Number, Name and Balance, from a text file? Then edit that data and save it back to the file? There are several lines of data in the file, so how do you find and edit the one you want?
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
1. Ini files. http://en.wikipedia.org/wiki/INI_file
file will be like
2. xml files
To parse and edit such file you can opn them with read
and write mode
using ios::in | ios::out mode.
Or use this thing for c++
No comments. Be first!