Hi
Please i'm a noob when it comes to the programming ish but i need the algorithm for a program that could read the amount of words in a text file
Thank you
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
VulpesRank #55 · 29.2K reputationPosted Mar 7, 2015, 3:17 AM EST
This treats words containing hyphens, underscores and apostrophes as single words which I think is what most people would do if they were counting the words 'by hand':
using System;