[comp.os.vms] problems with Ftell/Fseek in VAX11 C

EVERHART%ARISIA.DECnet@GE-CRD.ARPA (02/17/88)

From:   Suskind%Arisia.decnet@CRD.GE.COM
  (ARISIA::SUSKIND      "nowhere man" 16-FEB-1988 15:13)
To:	info-vax
Subj:	I tried to reply to a bulletin message,,, it bagged...

I was replying to a VAX-INFO message about Ftell/Fseek and a possible bug..
The reason he gets different records read if the file is stream or
variable,,, is that with the stream file you get the ACTUAL byte location.
with the variable file you get the location at the START of the LAST full
record read... so if you read record two and do an Ftell,,, if it is a
stream you will get the END of the record position.
variable you will get the BEGINING of the record position.
the variable will not give you the next record position until you begin
to read the next record and the buffers are all updated.
.
barry