StreamWriter.WriteLine Method

Writes a string followed by a line terminator to the text stream.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)

Syntax

public override void WriteLine (
         string value
)

Parameters

  • value
    The string to write. If value is a null reference, only the line termination characters are written.

Remarks

This version of WriteLine is equivalent to Write.

The line terminator string is defined by the NewLine property.

This method does not search the specified String for individual newline characters (hexadecimal 0x000a) and replace them with NewLine.

Version Information

Available in the .NET Micro Framework versions 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

StreamWriter Class
StreamWriter Members
System.IO Namespace