I had the string like in this format: string test="123_456_7890"; I need to convert this string into a string array like this:
string [] arr={"123","456","7890"};
Any help will be appreaciated.
Thanks Sabbu
I had the string like in this format: string test="123_456_7890"; I need to convert this string into a string array like this:
string [] arr={"123","456","7890"};
Any help will be appreaciated.
Thanks Sabbu
You can use the string functions to split it. String[] arr = test.split(new char[]{'_'}).ToArray();