[net.lang.ada] An I/O question

pollice@wanginst.UUCP (Gary Pollice) (10/28/86)

When trying to count the number of lines in a file, using the text_io
get_line function, it seems that all implementations of Ada which I have used
do not recognize a line with just a form feed (followed by a line feed) in it.

This means that my line count is off usually by the number of lines which just 
contain form feeds.  If there are spaces on the line as well then everything
works just fine.

One final thing.  If there are consecutive lines with just form feeds on them
then some of them are counted and some are not.

Has anyone run into this problem and, if so, is it solvable within Ada itself?

Thanks.
-- 
Gary Pollice                             pollice@wanginst          (CSNET)
Wang Institute of Graduate Studies       decvax!wanginst!pollice   (UUCP)
Tyng Road, Tyngsboro, MA 01879           (617) 649-9731