comp.lang.ada
 help / color / mirror / Atom feed
From: Jeffrey Carter <spam@spam.com>
Subject: Re: Word counting
Date: Fri, 12 Dec 2003 01:17:03 GMT
Date: 2003-12-12T01:17:03+00:00	[thread overview]
Message-ID: <jG8Cb.8153$_r6.5752@newsread1.news.pas.earthlink.net> (raw)
In-Reply-To: <4d01ad29.0312111401.32ec5297@posting.google.com>

wave wrote:

> I'm trying to read a file of which each sentence consists of a line of
> words, separated obviously by one or more blank spaces. I'm trying to
> get it to read these lines of the file and count the number of words
> that have one letter, two letters, and so on, up to a maximum of
> fifteen letters.

If this isn't homework, you could use PragmARC.Word_Input, which reads a 
text file a word at a time:

http://home.earthlink.net/~jrcarter010/pragmarc.htm

-- 
Jeff Carter
"Sir Lancelot saves Sir Gallahad from almost certain temptation."
Monty Python & the Holy Grail
69




  parent reply	other threads:[~2003-12-12  1:17 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-11 22:01 Word counting wave
2003-12-11 22:45 ` David C. Hoos
2003-12-12  1:17 ` Jeffrey Carter [this message]
2003-12-12  3:22 ` Steve
2003-12-12 14:33 ` Martin Krischik
  -- strict thread matches above, loose matches on Subject: below --
2003-12-11 22:47 amado.alves
2003-12-11 22:53 amado.alves
2003-12-12  2:39 ada_wizard
2003-12-12  9:49 ` wave
2003-12-12 18:26   ` Jeffrey Carter
2003-12-13  3:40   ` Steve
2003-12-13  6:09     ` tmoran
2003-12-12 12:56 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