Hi,
i have following piece of code with me iam spliting the words using only one space and the output is
output:
when ambition ends happiness begins
But i want split the words after two spaces i mean my output should be like this:
when ambition ends happiness begins
string vj = "when ambiton ends happiness begins";
List<string> k = new List<string>();
char ch = ' ';
string[] arr = vj.Split(ch);
foreach (string r in arr)
{
Response.Write(r + "<br/>");
}