# LibTmux.TmuxBuffers.LoadAsync

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

```
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`: <paramref name="path" /> is blank.
