U
uche
Hello all!!
Is there an algorithm out there that will allow you to go to a
specific line in a .txt...and start outputing to the screen at that
line until end of record
Here is a code that i implemented...
while(istrm1.peek() != EOF)
{
++count;
if(count==RBNx)
{
for(int i = 0 ; i < endofRec; i++)
{
istrm1.getline(line,512);
cout<<line<<endl;
}
istrm1.seekg(ios::clear,ios::begin);
istrm1.clear();
break;
}
istrm1.ignore(128, '\n');
}
Is there an algorithm out there that will allow you to go to a
specific line in a .txt...and start outputing to the screen at that
line until end of record
Here is a code that i implemented...
while(istrm1.peek() != EOF)
{
++count;
if(count==RBNx)
{
for(int i = 0 ; i < endofRec; i++)
{
istrm1.getline(line,512);
cout<<line<<endl;
}
istrm1.seekg(ios::clear,ios::begin);
istrm1.clear();
break;
}
istrm1.ignore(128, '\n');
}