C# StreamWriter Write(Double)
Description
StreamWriter Write(Double)
Writes the text representation
of an 8-byte floating-point value to the text string or stream.
Syntax
StreamWriter.Write(Double)
has the following syntax.
public virtual void Write(
double value
)
Parameters
StreamWriter.Write(Double)
has the following parameters.
value
- The 8-byte floating-point value to write.
Returns
StreamWriter.Write(Double)
method returns
Example
using System;//from w w w. j a v a 2 s . c o m
using System.IO;
using System.Text;
class Program
{
static void Main(string[] args)
{
string fileName = "test.txt";
using (StreamWriter writer = new StreamWriter(fileName))
{
writer.Write(1.2D);
}
}
}