So implement the algorithm as follows:
Each time you are storing the current line so that on the next iteration you can refer back to it. Whenever you store the current line, it replaces the line you previously stored.
You still haven't taken the time to show us sample output that the program would produce with specific sample input. Anyway, get started implementing the algorithm I've described, and let us know when you're stuck.
Dave
In reply to Re^3: Next Line Assigning to A Scalar
by davido
in thread Next Line Assigning to A Scalar
by rmwheeler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |