comp.lang.ada
 help / color / mirror / Atom feed
From: "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com>
To: "comp.lang.ada mail to news gateway" <comp.lang.ada@ada.eu.org>
Cc: ggroups@guff.org
Subject: Re: getting words from file
Date: Sat, 8 Mar 2003 12:42:34 -0600
Date: 2003-03-08T12:42:34-06:00	[thread overview]
Message-ID: <mailman.23.1047148988.4331.comp.lang.ada@ada.eu.org> (raw)


----- Original Message -----
From: "cookie" <ggroups@guff.org>
Newsgroups: comp.lang.ada
To: <comp.lang.ada@ada.eu.org>
Sent: March 08, 2003 9:38 AM
Subject: Re: getting words from file


> Sorry.. where can I find the Ada.Strings.Fixed.Find_Token procedure?

It comes with your ada compiler.

>
> Cheers
>
>
> "David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> wrote in message
news:<mailman.21.1047098216.4331.comp.lang.ada@ada.eu.org>...
> > Look at the procedure Ada.Strings.Fixed.Find_Token.
> >
> > Tokens are groups of characters delimited by certain other characters.
> >
> > For example if you specify whitespace characters (e.g., space, tab, etc.)
> > plus punctuation marks as delimiters, then the found tokens will be words,
> > if the file is ordinary text.
> >
> > Find_Token will tell you the index of the first and last characters
> > of the next token after some starting index.  Thus, after you find a token
> > you start looking at the next character following the last character of the
> > token just found, you'll find the next token, and so on.
> >
> > ----- Original Message -----
> > From: "cookie" <ggroups@guff.org>
> > Newsgroups: comp.lang.ada
> > To: <comp.lang.ada@ada.eu.org>
> > Sent: March 07, 2003 9:58 PM
> > Subject: getting words from file
> >
> >
> > > Does anyone know how I would store a word in a specific variable after
> > > a space occurs inside a textfile? (say there was a line in the
> > > textfile like this: one two three four five... I'd want it to get
> > > these words and store it in an already defined var like varOne varTwo
> > > and so on.
> > >
> > > This is the idea I was playing with to get the actual word (scans
> > > through the characters until it hits a space and tries to merge all of
> > > those characters into a word): http://www.guff.org/ada.txt ..or am I
> > > way off?
> > > _______________________________________________
> > > comp.lang.ada mailing list
> > > comp.lang.ada@ada.eu.org
> > > http://ada.eu.org/mailman/listinfo/comp.lang.ada
> > >
> > >
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>
>





             reply	other threads:[~2003-03-08 18:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-08 18:42 David C. Hoos, Sr. [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-03-08  3:58 getting words from file cookie
2003-03-08  4:36 ` David C. Hoos, Sr.
2003-03-08 15:38   ` cookie
2003-03-08 19:51     ` Pascal Obry
     [not found]       ` <canqj-ff3.ln1@beastie.ix.netcom.com>
2003-03-09 13:42         ` Marin David Condic
2003-03-08 19:52     ` Pascal Obry
2003-03-08 15:39 ` Mark Biggar
2003-03-08 17:40   ` Matthew Heaney
2003-03-08 19:16 ` Jeffrey Carter
replies disabled

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