TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: CHRIS GUNN
from: DAVID WILLIAMS
date: 1998-04-03 16:11:00
subject: Re: Multiple eofs

-> The End-Of-File character CHR$(26) is a left over from CP/M and early
-> DOS programs.  QuickBasic tries to stay compatible by observing it
-> for text based files.  Some programs still put an EOF character at
-> the end of text files. Most newer programs do not.  They go by the
-> length stored in the directory entry for the file.
->
-> The EOF character is ignored when opening a file for BINARY or
-> RANDOM.  If CHR$(26) and some other lower 32 control codes appear
-> inside a file, it's not intended for sequential text access by
-> opening the file for INPUT.
Sometimes, I despair of PC-DOS! No sensible system would use CTL-Z
(CHR$(26)) or any other ASCII character to indicate EOF. It was not
given that significance in the original ASCII, and has never had that
significance in the other DOSes with which I am familiar - even those
which are older than PC-DOS. In any reasonable system, EOF is indicated
by a pattern of bits which is different from those that represent all
ASCII characters, and therefore *cannot* be put within a file.
Daft, that's what it is!
                           dow
--- PCBoard (R) v15.3 (OS/2) 5
---------------
* Origin: FidoNet: CAP/CANADA Support BBS : 416 287-0234 (1:250/710)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.