Answers for "C# using StreamReader"

C#
3

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);
  }
}
Posted by: Guest on March-04-2021
1

C# using StreamReader

using System.IO; // <- This is the class for StreamReader
Posted by: Guest on January-25-2021

C# Answers by Framework

Browse Popular Code Answers by Language