# 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.

```csharp
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](https://www.ask-codey.com/glossary?category=c-sharp&level=3)

Updated: November 9, 2026

Source: https://www.ask-codey.com/glossary/streamwriter
