🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Gary Pollice Tue, 28 Oct 1986 20:04
An I/O question
#1030
Author: Gary Pollice
Date: Tue, 28 Oct 1986 20:04
20 lines
1355 bytes

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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads