Can you please assist me in the following below why it is failing. This code is suppose to read from two files. It reads the first line from the ifspeed document then its suppose to go to the other document ifsbtl and read all the lines in that document then after it is finished go to the next line in ifspeed. Any thoughts??
cire i am comparing two diffrent documents. they are not the same. hence i need to read one line from ifspeed and compare that all the lines in ifsbtl then move to another line 2...3...4...etc in ifspeed and compare again with all lines in ifsbtl.
In that case you have to start reading from the beginning of ifsbtl again.
1 2 3 4 5 6 7 8
while( getline(ifspeed,sline) ) {
while(getline(ifsbtl,bline)) {
if condition to compare line in other document
}
ifsbtl.clear();
ifsbtl.seekg(0, ios::beg);
}