C# StringWriter WriteLine(Int32)
Description
StringWriter WriteLine(Int32)
Writes the text representation
of a 4-byte signed integer followed by a line terminator to the text string
or stream.
Syntax
StringWriter.WriteLine(Int32)
has the following syntax.
public virtual void WriteLine(
int value
)
Parameters
StringWriter.WriteLine(Int32)
has the following parameters.
value
- The 4-byte signed integer to write.
Returns
StringWriter.WriteLine(Int32)
method returns
Example
/*from w ww .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);
Console.WriteLine(strWriter.ToString());
}
}
The code above generates the following result.