StreamWriter
noun
say it: “STREEM-ry-ter” /ˈstriːmraɪtər/
A C# class that writes text to a file or stream.
What is StreamWriter in C#?
StreamWriter — A writer that converts text characters into bytes for a stream.
class OrderFile
{
string Read(string path)
{
using StreamReader reader = new(path);
return reader.ReadToEnd();
}
}
In a sentence
- “A StreamWriter saved each grade on its own line.”
Level: Journeyman · More C# terms at this level
Updated