C# StringWriter WriteLine(Int64)

Description

StringWriter WriteLine(Int64) Writes the text representation of an 8-byte signed integer followed by a line terminator to the text string or stream.

Syntax

StringWriter.WriteLine(Int64) has the following syntax.


public virtual void WriteLine(
  long value
)

Parameters

StringWriter.WriteLine(Int64) has the following parameters.

  • value - The 8-byte signed integer to write.

Returns

StringWriter.WriteLine(Int64) method returns

Example


/*from   w  w w. jav a2s  . c  om*/
using System;
using System.Globalization;
using System.IO;

class StrWriter
{
    static void Main()
    {
        StringWriter strWriter = new StringWriter();
        
        strWriter.WriteLine(123L);
        
        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