Type Reason System.IO.IOException An I/O error occurred.
This overload is equivalent to TextWriter.Write(char) followed by TextWriter.WriteLine .
The line terminator is defined by the TextWriter.CoreNewLine field.
For a list of common I/O tasks, see Common I/O Tasks.