hi..........
i want to count space between words...
like if i write "abc dgf ghj"
it will count space 2
thanks
Space between words
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
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
PJ MartinsRank #2,548 · 548 reputationPosted Jun 17, 2010, 6:51 AM EDT
string[] parts = "abc dfg ghj".Split(' ');
Console.WriteLine(parts.Length - 1);