C# StringWriter Write(String)
Description
StringWriter Write(String)
Writes a string to the current
string.
Syntax
StringWriter.Write(String)
has the following syntax.
public override void Write(
string value
)
Parameters
StringWriter.Write(String)
has the following parameters.
value
- The string to write.
Returns
StringWriter.Write(String)
method returns
Example
using System;// w w w.j a v a 2s. c o m
using System.Globalization;
using System.IO;
class StrWriter
{
static void Main()
{
StringWriter strWriter = new StringWriter();
strWriter.Write("from java2s.com");
Console.WriteLine(strWriter.ToString());
}
}
The code above generates the following result.