# StreamReader

*noun*

say it: **“STREEM-ree-der”** **/ˈstriːmriːdər/**

A C# class that reads text from a file or stream, one line or all at once.

## What is **StreamReader** in C#?

**StreamReader** — A reader that converts bytes from a stream into text characters.

```csharp
class OrderFile
{
    string Read(string path)
    {
        using StreamReader reader = new(path);
        return reader.ReadToEnd();
    }
}
```

## In a sentence

- “A **StreamReader** read the log one line at a time.”

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/streamreader
