hi..........
i want to count space between words...
like if i write "abc dgf ghj"
it will count space 2
thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
PJ MartinsPosted Jun 17, 2010, 10:51 AM
string[] parts = "abc dfg ghj".Split(' ');
Console.WriteLine(parts.Length - 1);