Add a file reading utility function

Going to use this for parsing config protobufs.

Change-Id: I471030b31dcf0450d40566560b3ce7338e7a7d21
diff --git a/aos/common/util/file.h b/aos/common/util/file.h
new file mode 100644
index 0000000..a32d0a7
--- /dev/null
+++ b/aos/common/util/file.h
@@ -0,0 +1,16 @@
+#ifndef AOS_COMMON_UTIL_FILE_H_
+#define AOS_COMMON_UTIL_FILE_H_
+
+#include <string>
+
+namespace aos {
+namespace util {
+
+// Returns the complete contents of filename. LOG(FATAL)s if any errors are
+// encountered.
+::std::string ReadFileToStringOrDie(const ::std::string &filename);
+
+}  // namespace util
+}  // namespace aos
+
+#endif  // AOS_COMMON_UTIL_FILE_H_