🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.ada
Article #1030

An I/O question

#1030
From: 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
Technical Details
Message-ID: <454@wanginst.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!clyde!masscomp!wanginst!pollice

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!rutgers!clyde!masscomp!wanginst!pollice
From: pollice@wanginst.UUCP (Gary Pollice)
Newsgroups: net.lang.ada
Subject: An I/O question
Message-ID: <454@wanginst.UUCP>
Date: Tue, 28-Oct-86 15:04:57 EST
Article-I.D.: wanginst.454
Posted: Tue Oct 28 15:04:57 1986
Date-Received: Wed, 29-Oct-86 00:10:00 EST
Reply-To: pollice@wanginst.UUCP (Gary Pollice)
Organization: Wang Institute, Tyngsboro, Ma.  01879
Lines: 20