# libtmux::Server::load_buffer

- **Module:** libtmux::Server
- **Package:** libtmux-cxx
- **Language:** C++
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-cxx/blob/85e8bd603a322dc32bb8b9aeb1a72bcf36945f1d/include/libtmux/server.hpp#L209
- **Page:** https://libtmux.org/reference/cxx/libtmux-server-load_buffer/

```
libtmux::Server::load_buffer(name: std::string_view, from: const std::filesystem::path &) -> expected< void, CommandFailure >
```

Read a file into a named buffer, and write one back out.

The file is read and written by the tmux server, so the path is the server's to resolve — which matters when it is not on this machine. The bytes are not interpreted: a buffer round-tripped through a file comes back identical.
