summaryrefslogtreecommitdiff
path: root/deno2/file_util.h
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-06-14 11:50:35 +0200
committerRyan Dahl <ry@tinyclouds.org>2018-06-14 14:19:17 +0200
commita5f53c000a44b790474b3093ceb4fcb11389157d (patch)
treeee21a666af64fa51502ee4d0202010e2b8d857de /deno2/file_util.h
parentf92f10b848d1be439094a84d5115e0100d685f6f (diff)
Cleans up ReadFile and snapshot_creator code.
Diffstat (limited to 'deno2/file_util.h')
-rw-r--r--deno2/file_util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/deno2/file_util.h b/deno2/file_util.h
new file mode 100644
index 000000000..87e39299d
--- /dev/null
+++ b/deno2/file_util.h
@@ -0,0 +1,14 @@
+// Copyright 2018 Ryan Dahl <ry@tinyclouds.org>
+// All rights reserved. MIT License.
+#ifndef FILE_UTIL_H_
+#define FILE_UTIL_H_
+
+#include <string>
+
+namespace deno {
+bool WriteDataAsCpp(const char* name, const char* filename,
+ const std::string& data);
+bool ReadFileToString(const char* fn, std::string* contents);
+} // namespace deno
+
+#endif // FILE_UTIL_H_