diff options
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); }; |