Creates a file with read-write access that allows others to read : File Access Mode : File Directory Stream C# Examples


C# Examples » File Directory Stream » File Access Mode »

 

Creates a file with read-write access that allows others to read









    
using  System;
using  System.IO;

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

        
        int  MyBytes  =  MyFileStream1.ReadByte();
        
        MyFileStream1.Close();        
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo File Directory Stream
» File Access Mode