Expand description
Convenience wrappers around common file I/O operations. Convenience I/O helpers.
These functions wrap common std::fs operations and attach contextual error
messages (including the failing path) where appropriate.
Functionsยง
- create_
dir_ all - Create a directory and any missing parent directories.
- create_
dir_ all_ std std::iovariant ofcreate_dir_all.- read_
to_ string - Read a file into a UTF-8 string.
- read_
to_ string_ optional - Read a file into a UTF-8 string.
- read_
to_ string_ or_ default - Read a file into a string, returning an empty string on error.
- read_
to_ string_ std std::iovariant ofread_to_string().- write
- Write bytes to a file.
- write_
atomic_ std - Write bytes to
pathatomically, best-effort. - write_
std std::iovariant ofwrite().