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,87a926dbf0cf8cb1 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: newbie problem Date: 1998/12/05 Message-ID: #1/1 X-Deja-AN: 418918859 Sender: matt@mheaney.ni.net References: <3667EE11.6E94BA0F@interact.net.au> <36681A30.5A315F94@elca-matrix.ch> NNTP-Posting-Date: Sat, 05 Dec 1998 03:39:43 PDT Newsgroups: comp.lang.ada Date: 1998-12-05T00:00:00+00:00 List-Id: Mats Weber writes: > Download GNAT and look at the package GNAT.IO_Aux. It contains two > Get_Line functions that should solve your problem: > > help_me_please : constant String(1..20) := GNAT.IO_Aux.Get_Line; I really don't think you meant to write this. I think you meant: Help_Me_Please : constant String := GNAT.IO_Aux.Get_Line; Unless the input string is exactly 20 characters, you'll get Constraint_Error every time you try to get a line.