From a5f53c000a44b790474b3093ceb4fcb11389157d Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 14 Jun 2018 11:50:35 +0200 Subject: Cleans up ReadFile and snapshot_creator code. --- deno2/file_util.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 deno2/file_util.h (limited to 'deno2/file_util.h') 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 +// All rights reserved. MIT License. +#ifndef FILE_UTIL_H_ +#define FILE_UTIL_H_ + +#include + +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_ -- cgit v1.2.3