# File Input/Output

*noun*

say it: **“FYLE IN-put OWT-put”** **/faɪl ˈɪnpʊt ˈaʊtpʊt/**

Reading data from files and writing data to files.

## What is **File Input/Output** in C#?

**File Input/Output** — Reading data from files and writing data to files.

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

## In a sentence

- “**File I/O** lets the grade book save its scores when the program closes.”

Level: Journeyman · [More C# terms at this level](https://www.ask-codey.com/glossary?category=c-sharp&level=3)

Updated: November 9, 2026

## In other subjects

- [File Input/Output in Java](https://www.ask-codey.com/glossary/file-input-output)

Source: https://www.ask-codey.com/glossary/file-input-output-c-sharp
