I have a long string I'd like to display to the console and would like to split the string into several lines so that it wraps nicely along word breaks and fits the console width.
Example:
try
{
...
}
catch (Exception e)
{
// I'd like the output to wrap at Console.BufferWidth
Console.WriteLine(e.Message);
}
What is the best way to achieve this?