Hi,
I' haven't been able to figure out how to format a list of string arrays coming from the string array. Currently here is another version of my code. Each time i change my code and debugg it its seems to be given me something different. Currently my String array have 179 elements. All i want to do is display for example 6 elements at a time and create a new line like
element 1 element 2 element 3 element 4 element 5 element 6
new line and continue patern..
Here is my currently code
Code:while (myOut.mystring.Count()>= 180) { sw.Write("{0, -2}", myOut.mystring[count1]); //sw.Write("{1, -2}", myOut.mystring[count1++]); //sw.Write("{2, -2}", myOut.mystring[count1]); if (myOut.mystring.Count()== myvariable ) { sw.WriteLine(); } count1++; }




Reply With Quote