C code
Alternately getline method can be used in C++.
Here is the code
ifstream file("fileName.txt");
while (getline(file,buffer,'\n')) {
// parse the buffer to get the desired data
// over write the data. in the end the last data will be saved.
}
No comments:
Post a Comment