summaryrefslogtreecommitdiff
path: root/deno2/file_util.h
diff options
context:
space:
mode:
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_