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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b34ecb04700058dd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-11-14 05:40:37 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mabes180@aol.com (Sarah Thomas) Newsgroups: comp.lang.ada Subject: Re: how to parse words from a string Date: 14 Nov 2002 05:40:37 -0800 Organization: http://groups.google.com/ Message-ID: References: NNTP-Posting-Host: 192.45.72.27 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1037281237 27329 127.0.0.1 (14 Nov 2002 13:40:37 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 14 Nov 2002 13:40:37 GMT Xref: archiver1.google.com comp.lang.ada:30869 Date: 2002-11-14T13:40:37+00:00 List-Id: Interesting follow ups! thanks for the input and help ! I have succesfully extracted words from a string. I read each line in from the file and used find_token, followed by slice, followed by deleting the word from the string..and then stored them in a fixed array for now.. this is just an outline of how i did it..... loop Find_Token(Temp, Ada.Strings.Maps.To_Set(Ada.Characters.Latin_1.HT), Ada.Strings.Outside, From, To); exit when To = 0; My_word := To_Unbounded_String(Slice(Temp, From, To)); Put_line(Output_File,To_String(My_word)); IF (Length(temp) /= To ) then Delete(Temp, 1, To + 1); else Delete(Temp, 1, To); end if; Store_data(Line_Number,Word_Number) := (My_Word); end loop;