Hi, I want to split a string in C#.NET that looks like this:
string Letters = "hello";
and put each letter (h, e, l, l, o
) into an array or ArrayList. I have no idea what to use as the delimiter in String.Split(delimiter)
. I can do it if the original string has commas (or anything else):
string Letters = "H,e,l,l,o";
string[] AllLettersArray = Letters.Split(",".ToCharArray());
But I have no idea what to use in a case with (supposedly) no delimiter. Is there a special character like Environment.Newline
? Thanks.