www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/09/24/12:30:14

Date: Mon, 24 Sep 2001 19:27:24 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Chris Smith <herrsmitty AT erols DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: read a file backwards
In-Reply-To: <3BAF4C56.3F2904BC@erols.com>
Message-ID: <Pine.SUN.3.91.1010924192546.1793A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 24 Sep 2001, Chris Smith wrote:

> I am working on a small encryption utility program. At one point in the
> program I need to be able to read a file backwards. Have I missed
> something specific about djgpp, or have I just over looked the obvious?

Instead of reading the file backwards, simply read it all into memory and 
then you can process it forward, backwards, or in any other order you like.

Remember: with DJGPP, you can all but forget about memory limitations, 
unless the file in question is many MBytes in size.

- Raw text -


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