Read whole text file to the end : Text File Read Write : File Stream C# Source Code


Custom Search

C# Source Code » File Stream » Text File Read Write »

 

Read whole text file to the end








    

using System;
using System.Data;
using System.IO;



class Class1{
  static void Main(string[] args){      
      StreamReader sr = new StreamReader("practice.txt");
      Console.WriteLine(sr.ReadToEnd()); 
      sr.Close();   
    }
}


           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo File Stream
» Text File Read Write