diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2018-07-26 00:03:15 +0300 |
---|---|---|
committer | Oleg Morozenkov <m@oleg.rocks> | 2018-07-26 00:03:15 +0300 |
commit | 2234450b81e3451a3e14686e80e13e66cf6d2a4a (patch) | |
tree | 1eeda88af36566425621c34092df9e63b5749037 /include/tgbot/tools | |
parent | 399eb75d2af1e641fd80b25d1729ef250a66314a (diff) |
Test on old ubuntu
Diffstat (limited to 'include/tgbot/tools')
-rw-r--r-- | include/tgbot/tools/FileTools.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/tgbot/tools/FileTools.h b/include/tgbot/tools/FileTools.h index 97fb52c..e718a6c 100644 --- a/include/tgbot/tools/FileTools.h +++ b/include/tgbot/tools/FileTools.h @@ -15,16 +15,17 @@ namespace FileTools { /** * Reads whole file to string. * @param filePath Path to a file + * @throws exception of type std::ifstream::failure if reading fails * @return string with file contents */ std::string read(const std::string& filePath); /** -* Save file to disk. -* @param filePath Path to a file -* @return bool success + * Save file to disk. + * @param filePath Path to a file + * @throws exception of type std::ifstream::failure if writing fails */ -bool write(const std::string& content, const std::string& filePath); +void write(const std::string& content, const std::string& filePath); }; |