aboutsummaryrefslogtreecommitdiff
path: root/include/FileUtil.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-05-03 08:29:45 +0200
committerdec05eba <dec05eba@protonmail.com>2018-05-03 08:29:48 +0200
commit9bb631f1e1861c63f38125fffb91081c98a1cfcc (patch)
treead852904b8ae278c789e7f636ed4107038231c3f /include/FileUtil.hpp
parent9cde35c64c9f569055b101a80419d900f58806a9 (diff)
Add/remove/list binds, saving to file
Diffstat (limited to 'include/FileUtil.hpp')
-rw-r--r--include/FileUtil.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/FileUtil.hpp b/include/FileUtil.hpp
index 0cfc808..097b607 100644
--- a/include/FileUtil.hpp
+++ b/include/FileUtil.hpp
@@ -15,4 +15,7 @@ namespace dchat
// Throws FileException on error.
// Returned value is allocated with malloc and should be free'd by caller.
StringView getFileContent(const boost::filesystem::path &filepath);
+
+ // Throws FileException on error
+ void fileReplace(const boost::filesystem::path &filepath, const StringView data);
}