Date: Mon, 24 Sep 2001 19:27:24 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Chris Smith cc: djgpp AT delorie DOT com Subject: Re: read a file backwards In-Reply-To: <3BAF4C56.3F2904BC@erols.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.