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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,d54559bde05f5bb8 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!r40g2000yqj.googlegroups.com!not-for-mail From: John McCormick Newsgroups: comp.lang.ada Subject: Re: Weird string I/O problem Date: Wed, 26 Nov 2008 07:21:25 -0800 (PST) Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 67.212.104.239 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1227712885 23542 127.0.0.1 (26 Nov 2008 15:21:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 26 Nov 2008 15:21:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r40g2000yqj.googlegroups.com; posting-host=67.212.104.239; posting-account=jVm7MAoAAABZ69ylB7L9PjZAVQg4j4fC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.0.3705; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:3782 Date: 2008-11-26T07:21:25-08:00 List-Id: Good advice from Dmitry. A nifty solution from Jean-Pierre! A shameless plug from me: For a lengthy elementary discussion on the input of mixed types check out Chapter 3 of Programming and Problem Solving with Ada by Dale, Weems, and McCormick. John On Nov 26, 3:07=A0am, Jean-Pierre Rosen wrote: > christoph.gr...@eurocopter.com a =E9crit :> What you need, is a Skip_Line= after the Get(A_Float). > > If you want to make sure you read something from a fresh new line, you > can use set_col(1). > > It has the nice property that if the previous get consumed the > end_of_line, it does nothing, and if it didn't, it skips everything up > to and including the end_of_line. > > -- > --------------------------------------------------------- > =A0 =A0 =A0 =A0 =A0 =A0 J-P. Rosen (ro...@adalog.fr) > Visit Adalog's web site athttp://www.adalog.fr