delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/03/19:50:28

From: Darren Grant <darn AT xl DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: File Routines
Date: Sun, 01 Jun 1997 22:01:26 -0700
Organization: loners anonymous
Lines: 14
Message-ID: <339253A6.566@xl.ca>
References: <33924A1F DOT 140F AT worldnet DOT att DOT net>
Reply-To: darn AT xl DOT ca
NNTP-Posting-Host: c145.xl.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Patrick J. Morris wrote:
> 
> If I use a compressed file in Allegro and I need to read in chunks at a
> time
> and might possible read a chunk several 1000 times during program
> execution. How
> would I do this? I think that I should use the pack_fopen_chunk(), but
> how would
> I go back and forth in a file if I can't use seek because the file is
> compressed.


If the file isn't too large, you might unpack it to a buffer (memory or
new file) first and operate on that instead.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019