I would like to split a specifc string


I have a sentence like

“CC Credit Name Welcome To UiPath”

Using array, I want to store
arr[0] = “CC Credit Name”
arr[1] = Welcome
arr[2] = To
arr[3] = UiPath

So that each array index will be stored in a separate column in a Data Table.


Use Split method to split the string and provide delimiter as space" ".

youtString.Split(" ".ToCharArray)