>I think in the help of FP 2.5, if you issue FREAD(lnHandle, 254), this will read to the end of the line. So if you code:
>
>lnHandle=fopen("MyTextFile.txt")
>=fseek(lnHandle,0) && moves to beginning of file.
>lnLines=0
>do while !feof(lnHandle)
> =fread(lnHandle, 254)
> lnLines=lnLines+1
>enddo
>=fclose(lnHandle)
>return lnLines
Yes, but this will require a scan of the file.
BTW, after a FOPEN(), aren't we at the beginning of the file?