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,97643ec695b9bf73 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-11 17:17:05 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!newsread1.news.pas.earthlink.net.POSTED!a6202946!not-for-mail From: Jeffrey Carter Organization: jrcarter commercial-at acm [period | full stop] org User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Word counting References: <4d01ad29.0312111401.32ec5297@posting.google.com> In-Reply-To: <4d01ad29.0312111401.32ec5297@posting.google.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Fri, 12 Dec 2003 01:17:03 GMT NNTP-Posting-Host: 63.184.9.250 X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.news.pas.earthlink.net 1071191823 63.184.9.250 (Thu, 11 Dec 2003 17:17:03 PST) NNTP-Posting-Date: Thu, 11 Dec 2003 17:17:03 PST Xref: archiver1.google.com comp.lang.ada:3402 Date: 2003-12-12T01:17:03+00:00 List-Id: 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