Basically what I'm trying to do is take a string
string test = "hello";
and then turn it into an array as such:
string[] testing = { "h", "he", "hel", "hell", "hello" };
is this possible?
Basically what I'm trying to do is take a string
string test = "hello";
and then turn it into an array as such:
string[] testing = { "h", "he", "hel", "hell", "hello" };
is this possible?
string test = "hello";
string[] arr = new string[] {test.Substring(0,1), test.Substring(0,2), test.Substring(0,3), test.Substring(0,4), test.Substring(0,5)};