From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f3ad228831281c35 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-03-08 07:38:20 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: ggroups@guff.org (cookie) Newsgroups: comp.lang.ada Subject: Re: getting words from file Date: 8 Mar 2003 07:38:20 -0800 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 80.1.29.202 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1047137900 23842 127.0.0.1 (8 Mar 2003 15:38:20 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 8 Mar 2003 15:38:20 GMT Xref: archiver1.google.com comp.lang.ada:35065 Date: 2003-03-08T15:38:20+00:00 List-Id: Sorry.. where can I find the Ada.Strings.Fixed.Find_Token procedure? Cheers "David C. Hoos, Sr." wrote in message news:... > 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" > Newsgroups: comp.lang.ada > To: > 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 > > > >