string str = "Apple\tBall\tCat\tDog\tElephant";
string[] strSplit = str.Split('\t');
// Method Call
string str = "Apple\tBall\tCat\tDog\tElephant";
string[] strSplit = SeparateStringWithTab(str);
// Method
public string[] SeparateStringWithTab(string value)
{
string[] strSplit = value.Split('\t');
return strSplit;
}
No comments:
Post a Comment