C# StringWriter WriteLine(Double)

Description

StringWriter WriteLine(Double) Writes the text representation of a 8-byte floating-point value followed by a line terminator to the text string or stream.

Syntax

StringWriter.WriteLine(Double) has the following syntax.


public virtual void WriteLine(
  double value
)

Parameters

StringWriter.WriteLine(Double) has the following parameters.

  • value - The 8-byte floating-point value to write.

Returns

StringWriter.WriteLine(Double) method returns

Example


//  w  w  w  . ja v  a  2 s .  c  om
using System;
using System.Globalization;
using System.IO;

class StrWriter
{
    static void Main()
    {
        StringWriter strWriter = new StringWriter();
        
        strWriter.WriteLine(123.123D);
        
        Console.WriteLine(strWriter.ToString());
    }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.IO »




BinaryReader
BinaryWriter
Directory
DirectoryInfo
DriveInfo
File
FileInfo
FileStream
MemoryStream
Path
StreamReader
StreamWriter
StringReader
StringWriter