DR> How do I read/write files with multiple EOF's (like ZIPs or EXEs)?
DR> I'm writing an Encryption program, but it stops at the first EOF. I
DR> tried a FOR X = 1 to LOF..... but then I ran into an "Input past end
DR> of file", even when there was more file past the EOF.
Howdy David,
Are you opening the file for BINARY? If you open a binary file for INPUT
ou
are going to run into all kinds of problems.
Reading a binary file one character at a time is also inefficient. GET what
you need in 5kb chunks instead of banging the hard drive 5 thousand times.
Use LOF to establish the size of the last GET.
Chris
--- FMail 0.96â
---------------
* Origin: BIZynet - Worldwide Business via the E-Ways (1:15/55.1)
|