To read a File to Textreader in C# and VB.NET you can use the following snippet.
Sample C#
TextReader reader = File.OpenText(@"C:\dummy.txt");
Sample VB.NET
Dim reader As TextReader = File.OpenText(@"C:\dummy.txt")
All the Code Snippets and Samples you need
To read a File to Textreader in C# and VB.NET you can use the following snippet.
TextReader reader = File.OpenText(@"C:\dummy.txt");
Dim reader As TextReader = File.OpenText(@"C:\dummy.txt")
You must be logged in to post a comment.
RT @CodeSnippetsNET: Read File to Textreader in C# and #VB .NET http://t.co/2q2Ii4rBFz #dotnet #csharp #code #coding #dev