hey..now i want to split my output to vertical form.But my output got no any space.So how should i split it to vertical form.
output now:
212132134214
i want split to
2
1
2
1
3
2
1
3
4
2
1
4
Hope someone can help me...thanks ya...

Check this out:

string value = "212132134214";
            char[] array = value.ToCharArray();
            StringBuilder sb = new StringBuilder();
            foreach (char str in array)
                sb.AppendLine(str.ToString());
            MessageBox.Show(sb.ToString());

But, my values are all in array already....the output need to store in the array too...

Just use lines 1 and 2 then.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.