|
tgbot-cpp
|
Functions | |
| TGBOT_API std::string | read (const std::string &filePath) |
| TGBOT_API void | write (const std::string &content, const std::string &filePath) |
| TGBOT_API std::string FileTools::read | ( | const std::string & | filePath | ) |
Reads whole file to string.
| filePath | Path to a file |
| exception | of type std::ifstream::failure if reading fails |
| TGBOT_API void FileTools::write | ( | const std::string & | content, |
| const std::string & | filePath ) |
Save file to disk.
| filePath | Path to a file |
| exception | of type std::ifstream::failure if writing fails |