On Wed, 13 Jun 2001, Esrar Chowdhury wrote:

> my question is...how do I make the read pointer read every 10th line
> from my input file? (After reading one line, does the read pointer stay
> on the same line or automatically go the next line?)

Hmmm... a homework problem?

Keep a counter that keeps track of the line number you are reading and
only do stuff to the data read from the line if the line number is
divisible by 10.

-- Brett
                                   http://www.chapelperilous.net/btfwk/
------------------------------------------------------------------------
I may not be totally perfect, but parts of me are excellent.
                -- Ashleigh Brilliant


Reply via email to