L
lundslaktare
Maybe this is the wrong group, if so I would like to be pointed
to a better group.
Anyway here's the problem:
I would need a program that makes a list of words of a text-file.
For example take the text:
------------------------------------
To be, or not to be; thats: the ques-
tion.
-----------------------------------------
would return:
be 2
not 1
or 1
question 1
thats 1
the 1
To 1
to 1
.. 1
, 1
: 1
; 1
- 1
As can be seen from this example, I want the program to count both
words and
interpunctation, and I want it to make a difference between "to" and
"To",
I also want it to count:
ques
-tion
as
question 1
- 1
Any help would be appreciated!
to a better group.
Anyway here's the problem:
I would need a program that makes a list of words of a text-file.
For example take the text:
------------------------------------
To be, or not to be; thats: the ques-
tion.
-----------------------------------------
would return:
be 2
not 1
or 1
question 1
thats 1
the 1
To 1
to 1
.. 1
, 1
: 1
; 1
- 1
As can be seen from this example, I want the program to count both
words and
interpunctation, and I want it to make a difference between "to" and
"To",
I also want it to count:
ques
-tion
as
question 1
- 1
Any help would be appreciated!