TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: DAVID WILLIAMS
from: DAVID STUMPF
date: 1998-04-02 00:50:00
subject: Multiple eofs

 - Quoting David Williams 
 - to David Rothschild
 -> 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.
 DW> Forgive a "mere" Mac user, but how can a file have more than one EOF?
 DW> In any (reasonable) DOS, EOF is *not* just an ASCII character. The
 DW> stuff that is recorded on a disk is a whole lot more complex than it
 DW> appears "through" the DOS. There are extra bits that are used for error
 DW> detection and correction. And there are codes for things like EOF that
 DW> do not represent any regular characters. The DOS handles everything,
 DW> and provides the outside world with something that looks a whole lot
 DW> simpler than what is really on the disk. It also ensures (or *should*
 DW> ensure) that there is only one EOF in each file, at its very end.
 DW> No?
You can add as many EOF characters to a file as you wish.  The first
one that basic encounters, will be reported as the end of file I
believe.  (It would make sense to me at least)
      [David.Stumpf@Earthling.net]    [http://www.dzs.home.ml.org]
[*] AutoSig v1.20       
... Calm down. It's only ones and zeros.
--- Telegard v3.02/Pro
---------------
* Origin: The GPC Approved II / Houston Texas / 713-856-8048 (1:106/830)

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™.