From: chan AT turing DOT scs DOT carleton DOT ca (Yuet-Ning Chan) Subject: Re: page To: powers AT inf DOT enst DOT fr (David Powers) Date: Sat, 31 Jul 93 4:32:04 EDT Cc: djgpp AT sun DOT soe DOT clarkson DOT edu > You've got two options. > > 1. Keep an array of page offsets on the way through and use an > absolute (or relative) seek to get back. I think this is a better way to seek backward. However, for implementing page, which can scroll 1 line, I have to keep the offsets of every line, which is very memory consuming but it is the fastest way. > 2. Go back by pages (of say 1024 or 4096) and scan backwards counting > CR-LFs > This is not possible because there is some lines longer than 80 characters and do not have CR-LF.