Read whole text file to the end

image_pdfimage_print
   
 
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();   
    }
}


           
         
     


This entry was posted in File Stream. Bookmark the permalink.