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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2e69f8b2b50371a6 X-Google-Attributes: gid103376,public From: Peter Amey Subject: Re: End_Of_Line, End_Of_File Date: 1996/12/02 Message-ID: #1/1 X-Deja-AN: 201897381 references: content-type: TEXT/PLAIN; charset=US-ASCII organization: Praxis plc, U.K. mime-version: 1.0 newsgroups: comp.lang.ada Date: 1996-12-02T00:00:00+00:00 List-Id: > The problem is I do not know how to recognize when there is an End_Of_Line > followed by an End_Of_File or when there is and End_Of_File alone. The > problem seems to be that in Ada95 (I'm using gnat-3.01 compiler on a Unix > workstation) when End_Of_File returns true, End_Of_Line also returns true > and that need not be true. For example: You might like to know that this isn't Ada95 specific: the text_io supplied with Ada83 compilers from Alsys and DEC behave differently on the example you give and give a different count of the number of lines in a file if if has blank lines before the end of file. The VAX compiler sees these empty lines but the Alsys does not. Peter