Hi George, Try the following codes. It is based on Francis's version.
void test()
{
string cfilename = "C:\\test.txt"; // Change to your file name here
string cLine(120);
string strLine(120);
FILE *ftemp;
ftemp = fopen(cfilename, "r");
if (ftemp != NULL)
{
fgets( cLine,120,ftemp );
strLine=cLine;
// Look for the beginning of the DATA block
while (!strLine.Match("*VD*") && !feof(ftemp))
{
fgets( cLine,120,ftemp );
strLine=cLine;
}
// start to read data...
}
}