new BufferedStream(FileStream fs) : BufferedStream « System.IO « C# / C Sharp by API






new BufferedStream(FileStream fs)

  

using System;
using System.IO;

public class MainClass
{
    public static int Main(string[] args)
    {

    FileStream dumpFile = new FileStream("Dump.dat", FileMode.Create, FileAccess.ReadWrite);
    BufferedStream myFileBuffer = new BufferedStream(dumpFile);
    
    byte[] str = {127, 0x77, 0x4, 0x0, 0x0, 0x16};
    myFileBuffer.Write(str, 0, str.Length);

    // add changes to file.
    myFileBuffer.Close();  // Flushes.
    dumpFile.Close();  // Flushes.

    return 0;
    }
}

   
    
  








Related examples in the same category

1.BufferedStream.Position
2.BufferedStream.Read
3.BufferedStream.Write
4.BufferedStream.WriteByte