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,fb00b4031f5d9d4a X-Google-Attributes: gid103376,public From: radke@dsdl.ee.iastate.edu (Kevin Radke) Subject: Re: GNAT's Text_IO & empty files Date: 1998/07/07 Message-ID: <6ntm8c$ulm$1@news.iastate.edu>#1/1 X-Deja-AN: 369289211 References: <35A0B7C5.1011D794@Maths.UniNe.CH> <35A12B47.1E9B74B7@magic.fr> Organization: Iowa State University, Ames, IA USA Newsgroups: comp.lang.ada Date: 1998-07-07T00:00:00+00:00 List-Id: How should an ada compiler act when it finds an "ill-formed" text file? As an example, on the Win32 platform, it is VERY easy to create a text file (with a brain-dead editor like notepad) that does not terminate the final line of the file with CR/LF before the EOF is reached. What should a compiler do when an user tries to do a text_io.get_line on this final line of the file? One compiler that we use raises "end_error". This has forced us to change our code to read in a file character by character... :( Not very efficient... Thanks! Kevin