Detecting End-of-File using READLINE command

Kenneth Brody kenbrody at bestweb.net
Mon Sep 13 13:28:11 PDT 2004


"Brian K. White" wrote:
[...]
> ø If:                                         ' get current position
> Then: pm_x = SEEK(pm_ho,"0","1")
[...]

FYI -  Rather than SEEKing to the current position, you can use TELL() to
return the current position.  They are effectively the same thing, but the
use of TELL is more explicit in what you are doing.  Plus, it is possible
that an O/S might use a read-ahead cache on a file that might be flushed
by the SEEK but not the TELL.

-- 
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody        | www.hvcomputer.com |                             |
| kenbrody/at\spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+



More information about the Filepro-list mailing list