Re: Count Words



>I'm trying to develop a program that will enable me to count the number
>of words in a text file.

Why? (other than to get a good grade on your homework assignment).

What is your definition of a "word"? How many words are there
on the following lines:

don't
3.141592
O'Brien
supercali-\nfragilisticexpialadocious
(where \n represents a newline and - represents a hyphen)
.
#&$(#&$(#

Gordon L. Burditt
.



Relevant Pages

  • Re: Legal Documents
    ... >I am a paralegal student and need the template for legal documents in ... > preparing a homework assignment. ... Prev by Date: ...
    (microsoft.public.word.pagelayout)
  • Re: rmdir when directory is not empty
    ... syntax error near unexpected token `newline' ... Prev by Date: ...
    (Fedora)
  • Re: rmdir when directory is not empty
    ... syntax error near unexpected token `newline' ... I'm dropping this thread; I'm sorry I interjected. ... Prev by Date: ...
    (Fedora)
  • Re: replace a line in a text file
    ... Luis Solís wrote: ... > replace line i by newline ... people might suspect this is a homework assignment that you ...
    (comp.lang.python)
  • Re: How can I change a data type into an Int?
    ... >I need some help with my homework assignment. ... Canadian Mind Products, Roedy Green. ... http://mindprod.com Again taking new Java programming contracts. ... Prev by Date: ...
    (comp.lang.java.help)