What is the bigger problem you are trying to solve? Most likely you can do it by reading the file forwards and change your test to suit.
Alternatively, if the file is small (less than say a few hundred megabytes) you could simply read lines into an array then run through the array backwards.
The more you tell us about the big picture problem you are trying to solve the more we are likely to be able to help.
In reply to Re: Reversing the action of the while loop
by GrandFather
in thread Reversing the action of the while loop
by Scotmonk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |