Hi David Williams, hope you are having a nice day
.+'~'+. | Qouted from a message from David Williams
31-Mar-98| To David Rothschild
`+._.+' | About 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.
DW> Forgive a "mere" Mac user, but how can a file have more than one EOF?
Forgive me for reading my QB Help file but.....
DW> In any (reasonable) DOS, EOF is *not* just an ASCII character. The stuff
DW> that is recorded on a disk is a whole lot more complex than it appears
DW> "through" the DOS. There are extra bits that are used for error
Acording to the ASCII chart there is a char going by the ascii number 26
that is counted to be the eof flag.....You may want to look at the chart by
going to the 'contents' then 'ASCII character Codes'....
You are correct in some of your message when you say that DOS controls error
correction but not eofs.... If you try opening a data file made in Pascel
you will notice that any string that has 26 chars in it starts with an EOF.
And a word of note: If you ever do read in a file DOS will always give at
least one EOF....But it may also give 10 Depending on the type of file.
Sorry for the moan but i'll set you up for the rest of the moans youll get
for this.
.+'~'+. | Bruce Corbett (Hook@Cheerful.com)
H O O K | H““k Software (www.members.tripod/~nzhook)
`+._.+' | áruce's áanter ááS (3:775/70) ((646) 756-6331 Np, Nz)
---
---------------
* Origin: H““k Software (3:775/70)
|