System.IO.TextWriter.Write Method

Writes a string to the text string or stream.

Syntax

public virtual void Write (string value)

Parameters

value
The string to write.

Exceptions

TypeReason
System.IO.IOException An I/O error occurred.

Remarks

This overload is equivalent to the TextWriter.Write(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 null, nothing is written to the text stream.

For a list of common I/O tasks, see Common I/O Tasks.

Requirements

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0