StringSplitOptions
-
i have problem with next code - " could not found StringSplitOptions" string text = "This is my string"; string[] words = text .Split(new char[1] { ' ' }, StringSplitOptions.RemoveEmptyEntries); TotalWords = words.Length; is anybody knows how to deal wit hthe problem ? eyalso
-
i have problem with next code - " could not found StringSplitOptions" string text = "This is my string"; string[] words = text .Split(new char[1] { ' ' }, StringSplitOptions.RemoveEmptyEntries); TotalWords = words.Length; is anybody knows how to deal wit hthe problem ? eyalso
hi, dont know how good is this method.i did like this last time String tmp =Words; do while(tmp.indexOf(" ")>0) // Do while you find two continuous spaces and remove those.. { tmp = tmp.Replace(" "," "); } int TotalWords = tmp.Split(' ').Length; Where there is a will,there is a way.
-
i have problem with next code - " could not found StringSplitOptions" string text = "This is my string"; string[] words = text .Split(new char[1] { ' ' }, StringSplitOptions.RemoveEmptyEntries); TotalWords = words.Length; is anybody knows how to deal wit hthe problem ? eyalso