comp.lang.ada
 help / color / mirror / Atom feed
From: mmq_2002@onetel.net.uk (Qas)
Subject: URGENT: inserting words into an array
Date: 7 Jan 2004 09:29:14 -0800
Date: 2004-01-07T09:29:14-08:00	[thread overview]
Message-ID: <c637494e.0401070929.224b992e@posting.google.com> (raw)

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.



             reply	other threads:[~2004-01-07 17:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-07 17:29 Qas [this message]
2004-01-07 19:48 ` URGENT: inserting words into an array Pascal Obry
2004-01-09 23:34   ` Craig Carey
2004-01-09 23:46     ` Craig Carey
  -- strict thread matches above, loose matches on Subject: below --
2004-01-07 18:23 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