From: Ted Dennison <dennison@telepath.com>
Subject: Re: Newbie Questions about Get, Get_Line
Date: Sat, 30 Dec 2000 17:17:38 GMT
Date: 2000-12-30T17:17:38+00:00 [thread overview]
Message-ID: <92l5bf$i0p$1@nnrp1.deja.com> (raw)
In-Reply-To: 3A4DED82.C23CDB77@acm.org
In article <3A4DED82.C23CDB77@acm.org>,
Marin David Condic <mcondic.nospam@acm.org> wrote:
> straightforward to use Text_IO.Get_Line. That should discard anything
> longer than your string buffer. If the input is shorter than your
Uhhh....no, I don't think so. If Last = Buffer'last, then there is more
input from the same line, and Get_Line needs to be called again to read
it. (This can mean that a later call to Get_Line will return with a
length of 0.) For a good discussion of this, see
http://www.adapower.com/lang/get_line.html
If you meant that he could just pass in the maximum length buffer to
Get_Line, then call Get_Line again if nessecary in a loop with a trash
buffer to flush the rest of the line, then I think that would work.
--
T.E.D.
http://www.telepath.com/~dennison/Ted/TED.html
Sent via Deja.com
http://www.deja.com/
next prev parent reply other threads:[~2000-12-30 17:17 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-30 7:33 Newbie Questions about Get, Get_Line gressett
2000-12-30 14:13 ` Marin David Condic
2000-12-30 17:17 ` Ted Dennison [this message]
2000-12-30 17:25 ` Ted Dennison
2000-12-30 22:46 ` Marin David Condic
2000-12-30 23:12 ` Ted Dennison
2000-12-30 14:31 ` Jeff Creem
2000-12-30 17:09 ` Ted Dennison
2000-12-31 8:13 ` gressett
2000-12-31 15:50 ` Larry Kilgallen
2000-12-31 17:03 ` Robert Dewar
2000-12-31 17:47 ` Ted Dennison
2000-12-31 21:07 ` tmoran
2001-01-01 6:12 ` gressett
2001-01-01 17:45 ` Robert Dewar
2001-01-01 17:46 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox