System.IO.TextWriter.Write Method

Writes the text representation of a 4-byte floating-point value to the text string or stream.

Syntax

public virtual void Write (float value)

Parameters

value
The 4-byte floating-point value to write.

Exceptions

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

Remarks

The text representation of the specified value is produced by calling the float.ToString method. The TextWriter.FormatProvider property, if not null, specifies the culture-specific formatting.

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