comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew Heaney" <mheaney@on2.com>
Subject: Re: Problem with Get_Line
Date: Wed, 2 Oct 2002 11:22:20 -0400
Date: 2002-10-02T11:22:20-04:00	[thread overview]
Message-ID: <upm3pe6lgrtm2f@corp.supernews.com> (raw)
In-Reply-To: TE2l9.545$CN2.350@nwrddc01.gnilink.net


"Frank J. Lhota" <NOSPAM.lhota.adarose@verizon.net> wrote in message
news:TE2l9.545$CN2.350@nwrddc01.gnilink.net...
>
> This is not really an Ada issue, mistakes like this are also made in C.
> After the "Get(Opc)" call, add a call to the Ada.Text_Io procedure
Skip_Line
> to discard the characters up to and including the next end-of-line marker.

I recommend you don't bother using Get and Skip_Line.  Instead, use Get_Line
to read all the input, and then use the Get procedures that read from a
string buffer.  See my article at AdaPower for more info.

http://www.adapower.com/lang/get_line.html







  reply	other threads:[~2002-10-02 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-26  5:35 Problem with Get_Line Mauricio Tellez
2002-09-27 19:51 ` Frank J. Lhota
2002-10-02 15:22   ` Matthew Heaney [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-09-26  5:34 Grein, Christoph
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox