As you may already know im working on a program that analyses a file given by the user, i want to create a word count feature. How would i go about doing this, i mean how would i distinguish what is exactly is a word and be able to incorporate this into my code, im not specifically looking for any example code on this 1, more just ideas on the method, any links or tips could be useful. Thanks
bops
1
Posting Whiz in Training
Recommended Answers
Jump to PostWords are generaly seperated by spaces, so look for spaces between charaters.
Jump to PostMore precisely, look for spaces ONLY after characters.
That will help you a great deal with tabs and incorrect spacing.
All 7 Replies
zyruz
0
Junior Poster in Training
Drowzee
3
Posting Whiz in Training
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
bops
1
Posting Whiz in Training
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Kcin
-1
Newbie Poster
Salem
commented:
-1E6 points for observation
-1
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.