java StreamReader code example
Example 1: c# streamreader
// The StreamReader are using the Namespaces: System and system.IO
using (StreamReader sr = new StreamReader("TestFile.txt"))
{
string line;
while ((line = sr.ReadLine()) != null)
{
Console.WriteLine(line);
}
}
Example 2: C# using StreamReader
using System.IO; // <- This is the class for StreamReader
Example 3: streamreader c#
streamreader c#