From 2234450b81e3451a3e14686e80e13e66cf6d2a4a Mon Sep 17 00:00:00 2001 From: Oleg Morozenkov Date: Thu, 26 Jul 2018 00:03:15 +0300 Subject: Test on old ubuntu --- include/tgbot/tools/FileTools.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include/tgbot/tools') 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); }; -- cgit v1.2.3