Is it exactly every 70 chars, or do you prefer to split it on
word boundaries? If the latter, it gets pretty detailed if
you also want to preserve existing breaks. :-)
But basically:
Split() the string on '\n' or '\n+'; you now have an array with one
element for each "line" in the original.
For each element in the array, split() on word space ('[ \t]+').
You now have an array with one element for each "word".
Reassemble the line, inserting a "\n" before the word that
would cause the total length to exceed 70. If a single word
exceeds 70 all by itself, you can search for other places to
break it, such as punctuation marks, but don't use split()
since in this case you don't want to lose the character, but
just insert a newline after it. And of course you need to be
prepared to do an arbitrary split anyway in case you get a
long word containing none of your sub-split characters.