|
tgbotxx 1.2.9.2
Telegram Bot C++ Library
|
Namespace contains useful File related utility functions. More...
Functions | |
| static std::string | read (const fs::path &filename) |
| Read entire file into an std::string. | |
| static std::vector< std::string > | readLines (const fs::path &filename) |
| Read entire file lines into std::vector<std::string> | |
| static void | readChunks (const fs::path &filename, const std::size_t maxChunkSize, const std::function< void(std::vector< std::uint8_t > &&)> &callback) |
| Read file chunk by chunk. | |
| static void | write (const fs::path &filename, const std::string &buffer) |
| Write buffer string to a new file. | |
Namespace contains useful File related utility functions.
Read entire file into an std::string.
| Exception | on failure |
Definition at line 15 of file FileUtils.hpp.
|
static |
Read file chunk by chunk.
| Exception | on failure |
Definition at line 45 of file FileUtils.hpp.
Read entire file lines into std::vector<std::string>
| Exception | on failure |
Definition at line 29 of file FileUtils.hpp.