It's easy enough to use: after you click on the icon, a file open
dialog comes up for selecting an ascii file to check. After that,
the main dialog comes up, with a control that displays the number
of words in the file. There's also a "Clipboard" button that
will count the words in a selection copied to the clipboard.
Check it out, and let me know if it's useful. As always,
suggestions and comments will be appreciated.
Greg Arzoomanian
gre...@ids.net
http://users.ids.net/~gregan/arzoosw.html
Providence, RI, USA
How about adding a feature to let the user choose word and sentence seperators?
Thank you very much for the cool program!
Kaelwyn
-----
ASCII to ASCII, DOS to DOS....
> It's neat, small and quick. I like that. Could you tell us what rules
> you used
> for the program to determine what constitutes a word?
I just used iostreams to input into a string, i.e.
// Open filename
ifstream istrm((LPCTSTR )m_filename);
int count = 0;
// loop on words
for (;;)
{
string word;
istrm >> word;
if (!istrm)
break;
count++;
}
There was a bit more work for checking text from the clipboard.
> How about adding a feature to let the user choose word and
> sentence seperators?
There may be some facility in iostreams to allow picking of
whitespace. What would be the need for this?
Greg
As for word seperators, I may be the only user who would want this feature, but
I have noticed when I use TextStat that I get vastly different word counts with
the '<' and '>' specified as word seperators and with them not when counting the
words in HTML documents.
Again, thank you for sharing this really neat little utility!
Kaelwyn
--
"All we are is just dust in the wind dude." --Ted 'Theodore' Logan
Very good , Greg .
Thank you
patrick