Writes a subarray of characters followed by a line terminator to Console.Out that is set to the system's standard output stream by default.
[Visual Basic] Overloads Public Shared Sub WriteLine( _ ByVal buffer() As Char, _ ByVal index As Integer, _ ByVal count As Integer _ ) [C#] public static void WriteLine( char[] buffer, int index, int count ); [C++] public: static void WriteLine( __wchar_t* buffer[], int index, int count ); [JScript] public static function WriteLine( buffer : Char[], index : int, count : int );
Exception Type | Condition |
---|---|
ArgumentException | buffer is null.Either index or index + count is not a valid index of buffer.count is less than 0. |
IOException | An I/O error occurs. |
The default line terminator is a carriage return followed by a line feed ("\r\n"). The line terminator can be modified via the NewLine property of Console.Out. Characters are read from buffer beginning at index and ending at index + count. All characters are written to the underlying stream unless the end of the underlying stream is reached prematurely.
Console Class | Console Members | System Namespace | Console.WriteLine Overload List