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,3fd398f82685fcd5 X-Google-Attributes: gid103376,public From: wwimber@clemson.edu (Wiley C. Wimberly, Jr.) Subject: Re: Text_io, beginer's question Date: 1996/10/24 Message-ID: #1/1 X-Deja-AN: 191836784 references: <32671BAF.D25@mail.wdn.com> organization: Clemson University newsgroups: comp.lang.ada Date: 1996-10-24T00:00:00+00:00 List-Id: In article <32671BAF.D25@mail.wdn.com>, Xuren.Huang@mail.wdn.com wrote: > Wrote a loop to read in strings along with other types of variable from > keyboard. Except the first time it was encounted in the loop, the line > " Text_IO.Get_Line(String, StringLength)" would not be executed. Any > idea how to fix that? BTW, I am using win95 GNAT v.304a. Thanks in > advance. Stick a Text_IO.Skip_Line in the code right before the loop. This might work. I have had similar problems using Get_Line and sometimes a Skip_Line will help. I don't know why, but if it works it works. Hope this helps. Wiley Wimberly