# LibTmux.TmuxBuffers.LoadAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Buffers/TmuxBuffers.cs#L42
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-tmuxbuffers-loadasync/

tmux command: [`load-buffer`](/en/tmux/latest/manual/load-buffer/)

```
LibTmux.TmuxBuffers.LoadAsync(path: string, name: string?, cancellationToken: CancellationToken) -> Task
```

Puts a file's contents into a buffer.

## Parameters

- `path` (`string`): The file to read.
- `name` (`string?`): The buffer name, or null for a new one.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

A task that completes once tmux has read it.

## Raises

- [`ArgumentException`](https://learn.microsoft.com/dotnet/api/system.argumentexception): <paramref name="path" /> is blank.
