How to Read a File Backwards?
Posted on 1998-06-28
I would like to Open a file, and read it backwards! How?
The file is regular text, no records with comma's or anything like that.
And, the text is much too big to use an Array to hold it all.
This is my problem:
I'm using a text artical as a Key in an encryption scheme. I would like the User to be
able to use the Key text backwards if they like. But I can't find a GOOD way to do this.
The text could be a complete novel or book. There is no way to use an Array to hold
it all. It must be read one line at a time, starting from the last line, without using
an Array or memory to store the whole text. The text is just regular text with no
comma's or seperation characters.