File Text Method C# with Example
using System.IO; using System; namespace CSharpFilesAndStreams { class Program { static void Main(string[] args) { // Get a StreamReader object. FileInfo f5 = new FileInfo(@"C:\boot.ini"); using(StreamReader sreader = f5.OpenText()) { // Use the StreamReader object... } } } }