I have a text box in a windows form application and I need to write the text to a text file but i need to split the text into either an array or table or something. It's just one text box. The text needs to be split/wrapped by a max of 40 characters per line.
Whats the best way to split the text with a for loop or something. I would like the split to detect if there are extra paragraphs. Would it be RegExp?
If there is an extra paragraph then ideally your code sample will account for this.
Hope you can help.