StreamReader
A reader that converts bytes from a stream into text characters.
What is StreamReader in C#?
StreamReader — A reader that converts bytes from a stream into text characters.
class OrderFile
{
string Read(string path)
{
using StreamReader reader = new(path);
return reader.ReadToEnd();
}
}
Level: Journeyman · More C# terms at this level
Updated