comp.lang.ada
 help / color / mirror / Atom feed
From: pollice@wanginst.UUCP (Gary Pollice)
Subject: An I/O question
Date: Tue, 28-Oct-86 15:04:57 EST	[thread overview]
Date: Tue Oct 28 15:04:57 1986
Message-ID: <454@wanginst.UUCP> (raw)



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

                 reply	other threads:[~1986-10-28 20:04 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox