Answers for "c# text reader"

C#
0

c# text reader

using System;  
using System.IO;  
namespace TextReaderExample  
{  
    class Program  
    {  
        static void Main(string[] args)  
        {  
            using (TextReader tr = File.OpenText("e:\\f.txt"))  
            {  
                Console.WriteLine(tr.ReadToEnd());  
            }  
        }  
    }  
}
Posted by: Guest on July-27-2021

C# Answers by Framework

Browse Popular Code Answers by Language