filestream streamreader c# 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: streamreader c#
streamreader c#