count words
C#
4
Posts
2
Posters
0
Views
1
Watching
-
hi i want to count the number of words I have in string (is anybody has code example ) thanks eyalso
-
Here is the sample:
string text = "This is my string"; string[] words = text.Split(new char[1] { ' ' }, StringSplitOptions.RemoveEmptyEntries); int countWords = words.Length;
Best regards, Alexey. -
I have a problem with " StringSplitOptions" (cant find it) i need to import a class or dll ? eyalso