Write Method (String)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Writes a string to the text string or stream.

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

public virtual void Write(
	string value
)

Parameters

value
Type: System..::..String
The string to write.

This overload is equivalent to the Write(array<Char>[]()[][]) overload.

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

If value is nullNothingnullptrunita null reference (Nothing in Visual Basic), nothing is written to the text stream.

Show: