I'm trying to split a string like
0 2 5 6 8 13
by using
string[] exampleStringArray = exampleString.Split(null)
However, I don't end up getting the strings
0, 2, 5, 6, 8, 13
in my array but there is one empty string at the index 0. How do I prevent this from happening?
And no, I cannot have a string array at the very beginning with these numbers.
Edit: This question is 10 months old but I revisited it and don't understand why it was marked as a duplicate to this question. My problem was an empty string at the beginning of an array, their problem was about splitting a string with multiple whitespaces between the needed values.