From: Michal Nowak <vinnie@inetia.pl>
Subject: Re: parse word from a string
Date: Tue, 12 Nov 2002 22:36:56 +0100
Date: 2002-11-12T22:36:56+01:00 [thread overview]
Message-ID: <mailman.1037136481.1667.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <a04a773e.0211121125.46b876c7@posting.google.com>
On 2002-11-12 at 11:25 mabes180@aol.com wrote:
>I'm new to Ada, can someone help me with this.
>I need to read a text file word by word. THe approach I took is to
>read each line of the text file and then parse the words out. I have
>read each line, now I have a hard time to parse the line into words
>and store them in an array. can someone help me with this.
>thanks
The procedure Find_Token from package Ada.Strings.xxxxx (xxxxx is
Fixed, Bouded or Unbounded, depending which Strings you use) is
what you are looking for. See Ada Reference Manual, section
A.4.3, A.4.4, A.4.5 in particular.
Hope this helps,
Michal
-- -----------------------------------------------------------------
-- ___ _
-- / _ \ | | I Choose Ada:
-- | |_| | ___| | _____ The Most Trusted Name in Software (TM)
-- | _ | | __ | | __ |
-- |_| |_| |_____|_ |_____|_ http://www.adaic.org/whyada/choose.html
--
-- -----------------------------------------------------------------
next prev parent reply other threads:[~2002-11-12 21:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-12 19:25 parse word from a string Sarah Thomas
2002-11-12 21:36 ` Michal Nowak [this message]
2002-11-13 9:46 ` Pascal Obry
2002-11-13 17:23 ` Mário Amado Alves
2002-11-14 17:41 ` Pascal Obry
2002-11-15 11:12 ` Mário Amado Alves
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox