in reply to Reversing the action of the while loop
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Reversing the action of the while loop
by Scotmonk (Sexton) on Nov 24, 2019 at 22:18 UTC | |
by tybalt89 (Monsignor) on Nov 24, 2019 at 23:53 UTC | |
by marioroy (Prior) on Nov 25, 2019 at 07:03 UTC | |
by Scotmonk (Sexton) on Nov 25, 2019 at 16:53 UTC | |
by stevieb (Canon) on Nov 25, 2019 at 17:02 UTC | |
by Scotmonk (Sexton) on Nov 25, 2019 at 17:10 UTC | |
by haukex (Archbishop) on Nov 25, 2019 at 21:23 UTC | |
by marioroy (Prior) on Nov 25, 2019 at 22:52 UTC |