Type Reason System.IO.IOException An I/O error occurred.
This overload is equivalent to the TextWriter.Write(Char[]) overload.
This method does not search the specified string for individual newline characters (hexadecimal 0x000a) and replace them with TextWriter.NewLine.
If value is null, nothing is written to the text stream.
For a list of common I/O tasks, see Common I/O Tasks.