Write data to file through FileStream per byte : FileStream : File Directory Stream C# Examples


C# Examples » File Directory Stream » FileStream »

 

Write data to file through FileStream per byte









    
using  System;
using  System.IO;

public  class  MainClass
{
    static  void  Main(string[]  args)
    {
        FileStream  MyFileStream1  =  new  FileStream(@"c:\Testing.txt",  FileMode.Create);

        byte  MyWriteByte  =  100;

        MyFileStream1.WriteByte(MyWriteByte);
        
        MyFileStream1.Close();        
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo File Directory Stream
» FileStream