Writes a line terminator to the text stream.
[Visual Basic] Overloads Overridable Public Sub WriteLine() [C#] public virtual void WriteLine(); [C++] public: virtual void WriteLine(); [JScript] public function WriteLine();
The default line terminator is a carriage return followed by a line feed ("\r\n"), but this value can be changed using the NewLine property.
Exception Type | Condition |
---|---|
IOException | An I/O error occurs. |
TextWriter Class | TextWriter Members | System.IO Namespace | TextWriter.WriteLine Overload List