comp.lang.ada
 help / color / mirror / Atom feed
* An I/O question
@ 1986-10-28 20:04 Gary Pollice
  0 siblings, 0 replies; only message in thread
From: Gary Pollice @ 1986-10-28 20:04 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1986-10-28 20:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1986-10-28 20:04 An I/O question Gary Pollice

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