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.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!feeder.erje.net!1.eu.feeder.erje.net!news2.arglkargh.de!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Annoying behavior References: <47c7df1e-17c1-44cb-a455-43431f0d39cd@googlegroups.com> Date: Sat, 25 Apr 2015 08:54:34 -0500 Message-ID: <85zj5wb9et.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (windows-nt) Cancel-Lock: sha1:36Z3zkr5GkWufyCQp1SK0e6DczM= MIME-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 92968553b9c9de97f808431243 X-Received-Bytes: 1362 X-Received-Body-CRC: 2263859260 Xref: news.eternal-september.org comp.lang.ada:25621 Date: 2015-04-25T08:54:34-05:00 List-Id: Laurent writes: > The annoying behavior (for me, perhaps it is absolutely normal) I get > is this while I try to read in the configuration file ( too many drug > names to keep entering them manually): > > laurent-lutgens-mac-pro-2:Build laurent$ ./generateur_trame_vt2 > Begin of reading loop > read name: Amikacine > read code: am > read cmi: test > read sir: S > Begin of reading loop > > raised ANTIBIOTIQUES.NAME_TOO_SHORT : antibiotiques.adb:90 You already solved this problem; uncomment the "Skip_Line" on line 157. SIR_Type_IO.Get does _not_ read the line end, so the next Get_Line on line 87 will see it, returning a zero length string. -- -- Stephe