Type Reason System.IO.IOException An I/O error occurred.
This overload is equivalent to the TextWriter.Write(Char[]) overload.
The line terminator is defined by the TextWriter.CoreNewLine field.
This method does not search the specified string for individual newline characters (hexadecimal 0x000a) and replace them with TextWriter.NewLine.
For a list of common I/O tasks, see Common I/O Tasks.