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=0.8 required=5.0 tests=BAYES_50 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ebe24efcf73549b1,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-01-07 09:29:16 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: mmq_2002@onetel.net.uk (Qas) Newsgroups: comp.lang.ada Subject: URGENT: inserting words into an array Date: 7 Jan 2004 09:29:14 -0800 Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 213.78.98.160 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1073496556 12314 127.0.0.1 (7 Jan 2004 17:29:16 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 7 Jan 2004 17:29:16 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:4181 Date: 2004-01-07T09:29:14-08:00 List-Id: hello all, before you say anything.. i have read the posts on this topic and they say there is no definite answer to putting words into arrays you have to have an exact number etc.. but my problem is slighlty different, i have a text file with 20 words seperated by either a space or new line and i want to know how i can insert each word into the array. i know that the maximum length a word will go to is 25 characters, this is what the file looks like: HELLO MIN COLLINEATION KNIFE KNIVES KNOW DAY NIGHT MORNINGS as you can see there is a mixture of spaces and new lines and i would like every word in an array cell of it own. i have initialised the array to have 20 cells of string. is the intialisation correct or should it be character. thankyou and please reply asap.