From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: *** X-Spam-Status: No, score=3.4 required=5.0 tests=BAYES_50,INVALID_DATE, MSGID_SHORT,REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: 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 List-Id: 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