Re: Help on Program

 BBS: Inland Empire Archive
Date: 06-29-92 (08:32)             Number: 1632
From: FRANCOIS ROY                 Refer#: NONE
  To: BILL SPICER                   Recvd: NO  
Subj: Re: Help on Program            Conf: (2) Quik_Bas
 BS> It would be great if there were a way to read from the end of the file
 BS> to the beginning.

 If you kept a companion index file, reading in reverse order would be easy:
 you would store the value 1 + LOF(1) in the index file just before writing
 to it (in APPEND mode).  When reading back, you would start from the end of
 the index file and SEEK #1, using the index just read.  It is easy to read
 the index file in reverse order, since all entries would have the same
 length and therefore the file could be opened for RANDOM.

--- ME2_1104
 * Origin: Out of String Space - the Final Frontier (Fidonet 1:163/506.2)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET