Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

An I/O question

1 view
Skip to first unread message

Gary Pollice

unread,
Oct 28, 1986, 3:04:57 PM10/28/86
to

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

0 new messages