Split[
^] already gives you an array of Strings, so all you have to do is this:
String ValueCommand2 = "/* some lines of text belong in here */";
String[] Command2 = ValueCommand2.Split(new char[] { '\n' });
You can get the size of the array by using the
Array
's Length property.
Regards,
—MRB