Writes the text representation of a Boolean value followed by a line terminator to the text string or stream.
Type Reason System.IO.IOException An I/O error occurred.
The text representation of the specified value is produced by calling the bool.ToString method.
This method outputs either bool.TrueString or bool.FalseString.
The line terminator is defined by the TextWriter.CoreNewLine field.
For a list of common I/O tasks, see Common I/O Tasks.