Writes the text representation of a decimal value followed by a line terminator to the text string or stream.
Type Reason System.IO.IOException An I/O error occurred.
The TextWriter.FormatProvider property, if not null, specifies the culture-specific formatting. For a list of common I/O tasks, see Common I/O Tasks.
The line terminator is defined by the TextWriter.CoreNewLine field.