TIP: Click on subject to list as thread! ANSI
echo: quik_bas
to: DAVID ROTHSCHILD
from: NICK ANDRE
date: 1998-03-29 00:21:00
subject: Re: Multiple eofs

DR> 
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 of
DR> file", even when there was more file past the EOF.
Are you opening/closing your files in binary mode?
If you have a routine to compute the size of the file, you can open it in 
binary, read the file (I'd poke it into memory if its small enough, perfect 
for encryption writing).
Nick.
--- Renegade v5-11 Exp
---------------
* Origin: The Best Lil' Mail Server in Collingwood! :) (1:252/0)

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