summaryrefslogtreecommitdiffhomepage
path: root/file.h
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2020-04-04 16:32:10 +0200
committerRoland Reichwein <mail@reichwein.it>2020-04-04 16:32:10 +0200
commit938fbe7a2f2f10a3abb530a9463e57fc20f40038 (patch)
tree62ee0c285c672b10a42b0690a011ede7a0bf00b6 /file.h
parent95d5acc8c7e60255b19e7084e374eb26cc5d0ba3 (diff)
HTTP and HTTPs
Diffstat (limited to 'file.h')
-rw-r--r--file.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/file.h b/file.h
new file mode 100644
index 0000000..e7e4cf6
--- /dev/null
+++ b/file.h
@@ -0,0 +1,15 @@
+#pragma once
+
+#include <cstdint>
+#include <filesystem>
+#include <string>
+#include <vector>
+
+namespace File {
+
+std::string getFile(const std::filesystem::path& filename);
+void setFile(const std::filesystem::path& filename, const std::string& s);
+void setFile(const std::filesystem::path& filename, const char* data, size_t size);
+void setFile(const std::filesystem::path& filename, const std::vector<uint8_t>& data);
+
+}