C# StreamWriter Write(UInt32)

Description

StreamWriter Write(UInt32) Writes the text representation of a 4-byte unsigned integer to the text string or stream.

Syntax

StreamWriter.Write(UInt32) has the following syntax.


[CLSCompliantAttribute(false)]
public virtual void Write(
  uint value
)

Parameters

StreamWriter.Write(UInt32) has the following parameters.

  • value - The 4-byte unsigned integer to write.

Returns

StreamWriter.Write(UInt32) method returns

Example


using System;/*from  www .jav 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((UInt32)123);
        }
    }
}




















Home »
  C# Tutorial »
    System.IO »




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