summaryrefslogtreecommitdiff
path: root/src/file_util.h
diff options
context:
space:
mode:
authorTristan Marion <trismarion@gmail.com>2018-06-22 15:30:35 +0200
committerRyan Dahl <ry@tinyclouds.org>2018-06-22 15:30:35 +0200
commit3b595253a2e9f8badc416f85d0b09bf48f344634 (patch)
tree85939e43b504cf0ff78f69a1912209e90b67ffe5 /src/file_util.h
parent86354a29a40fb97e334f951428239ab8e171e2dd (diff)
Move `deno2` folder to `src` (#277)
Diffstat (limited to 'src/file_util.h')
-rw-r--r--src/file_util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/file_util.h b/src/file_util.h
new file mode 100644
index 000000000..87e39299d
--- /dev/null
+++ b/src/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_