- 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)
|