[Date Prev][Date Next][Subject Prev][Subject Next][ Date Index][ Subject Index]

Re: Word count over multiple files



** Reply to note from xywrite@xxxxxxxx Sat, 11 Mar 2000 01:20:09 -0000
 
> (XY3.57 under Win98SE) Does anyone have a routine that can carry out a word count over a group
> of files, such as chapters of a book, etc?
 
> Paul Breeze

Such a program would have a very narrow purpose, but the general outline would be
simple. Initialize a Save/Get to hold the total word count: . Issue a global filespec,
e.g. CA CHAP*.TXT, then func EN Edit_Next to CAll the second and subsequent files encompassed in
the filemask. Before issuing EN, add the Word_Count value to a Save/Get, e.g.
>+>. Keep looping. When EN fails (no more files match the spec),
report the value of S/G 01 -- the total word count.



---------
Robert Holmgren
holmgren@xxxxxxxx
---------