StreamReader : StreamReader : File Directory Stream C# Examples


C# Examples » File Directory Stream » StreamReader »

 

StreamReader









    
using  System;
using  System.IO;

public  class  MainClass
{
    static  void  Main(string[]  args)
    {
        StreamReader  MyStreamReader  =  new  StreamReader(@"c:\Projects\Testing.txt");

        string  str  =  MyStreamReader.ReadToEnd();
        Console.WriteLine(str);

        MyStreamReader.Close();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo File Directory Stream
» StreamReader