TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: DAVID ROTHSCHILD
from: DAVID WILLIAMS
date: 1998-03-31 17:39:00
subject: Multiple eofs

-> How do I read/write files with multiple EOF's (like ZIPs or EXEs)?
-> I'm writing an Encryption program, but it stops at the first EOF.  I
-> tried a FOR X = 1 to LOF..... but then I ran into an "Input past end
-> of file", even when there was more file past the EOF.
Forgive a "mere" Mac user, but how can a file have more than one EOF?
In any (reasonable) DOS, EOF is *not* just an ASCII character. The stuff
that is recorded on a disk is a whole lot more complex than it appears
"through" the DOS. There are extra bits that are used for error
detection and correction. And there are codes for things like EOF that
do not represent any regular characters. The DOS handles everything, and
provides the outside world with something that looks a whole lot simpler
than what is really on the disk. It also ensures (or *should* ensure)
that there is only one EOF in each file, at its very end.
No?
                              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™.