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