# Append

*verb*

say it: **“uh-PEND”** **/əˈpɛnd/**

To add to the end of a file, keeping what is already there.

## What is **Append** in C#?

**Append** — Writing to the end of a file and keeping everything already in it, instead of replacing it. Logs are appended to: each run adds new lines under the old ones.

```csharp
File.AppendAllText("orders.log", "Order 43 shipped" + Environment.NewLine);
using StreamWriter log = new("orders.log", append: true);
```

## In a sentence

- “Each run of the program **appends** a line to orders.log.”

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

Updated: October 28, 2026

Source: https://www.ask-codey.com/glossary/append-c-sharp
