I'm reading records in a dbf line by line in C under DOS, and it freezes when the data file gets large.
fseek(fp, headlength, 0); /* Position the file pointer to the start of the first record */
for (recno = 1; recno <= recnumber; recno++)
{
fgets(str, reclength + 1, fp);
printf("%u, %s\n", recno, str);
}
Does anyone have any good methods to solve this?
fseek(fp, headlength, 0); /* Position the file pointer to the start of the first record */
for (recno = 1; recno <= recnumber; recno++)
{
fgets(str, reclength + 1, fp);
printf("%u, %s\n", recno, str);
}
Does anyone have any good methods to solve this?
