From: utzoo!decvax!harpo!floyd!vax135!lime!we13!otuxa!nwuxc!inuxc!ixn5c!ihlpb!klick
Newsgroups: net.micro
Title: Microsoft BASIC problem
Article-I.D.: ihlpb.194
Posted: Thu Aug 19 23:04:44 1982
Received: Fri Aug 20 05:16:05 1982

I have recently purchased a 2-year old Vector Graphics computer (S-100 CP/M).
In experimenting with a friend's program using random access files from
Microsoft BASIC (Version 5), I found out about a serious problem.
The EOF function doesn't seem to work properly.  If you are using random
access, but happen to be reading records in sequence, EOF appears to work.
However, when you are reading and writing random-access records in sequence,
EOF=-1 is returned when the record being read is entirely in the buffer from
the last operation.  (Obviously, this does not occur if the record
length is greater than or equal to the buffer size - 128 bytes in this case.)
An interesting sidelight is that even though EOF=-1 is returned, the GET
is successful - if you disregard EOF and just keep track of the number of
records in the file, you can get around the problem.
However, I would prefer that EOF worked.  Please mail me any info on correcting
this problem.

                              Thanks in advance,
                                 Vickie Klick
                                 ...!ihlpb!klick