Hi
I want to spllit a line based on space and pass each split item into an array. I tried the below, but I an error that “To array” is not a member of string. Thank you
text1.Split(" "C.ToArray, StringSplitOptions.RemoveEmptyEntries)
Hi
I want to spllit a line based on space and pass each split item into an array. I tried the below, but I an error that “To array” is not a member of string. Thank you
text1.Split(" "C.ToArray, StringSplitOptions.RemoveEmptyEntries)
Hi
Sorry the error is “To Array” is not a member of Char .
@Anonymous2 Use Split(yourStringVar," ") and assign it to Array of String variable