comp.lang.ada
 help / color / mirror / Atom feed
From: wwimber@clemson.edu (Wiley C. Wimberly, Jr.)
Subject: Re: Text_io, beginer's question
Date: 1996/10/24
Date: 1996-10-24T00:00:00+00:00	[thread overview]
Message-ID: <wwimber-2410962147430001@daniel209.labs.clemson.edu> (raw)
In-Reply-To: 32671BAF.D25@mail.wdn.com


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




  parent reply	other threads:[~1996-10-24  0:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-10-18  0:00 Text_io, beginer's question Xuren Huang
1996-10-21  0:00 ` John Herro
1996-10-24  0:00 ` Wiley C. Wimberly, Jr. [this message]
1996-10-29  0:00   ` Frank C. Post
replies disabled

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