Whilst I can find MANY examples of how to split a string based on a certain character within that string, how can I split a string based on the no of chars
For example, I have a string that is 20 chars long but I want to create a newline every 5 chars;
string str = 12345678901234567890;
for (i = 0, i < 5, i++]
{
textBox1.Text = str;
textBox1.EnvironmentNewline;
}
Any help is greatly appreciated