Open an existing file : FileStream : File Directory Stream C# Examples


C# Examples » File Directory Stream » FileStream »

 

Open an existing file









    
using  System;
using  System.IO;

public  class  MainClass
{
    static  void  Main(string[]  args)
    {
        FileInfo  MyFile  =  new  FileInfo(@"c:\Testing.txt");
        FileStream  MyStream;

        MyStream  =  MyFile.Open(FileMode.Open,  FileAccess.Read,  FileShare.None);
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo File Directory Stream
» FileStream