Add malloc-free file contents reader

If you have a file that can be read safely in realtime code, this
provides a convenient wrapper for grabbing the entire contents of
said file. This should also just be a bit faster than
ReadFileToStringOrDie just by virtue of avoiding all the malloc's in
std::string and not having to re-open the file.

Change-Id: I90a3fa9433ac3a8773027327bde245ebf0c13b10
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/util/BUILD b/aos/util/BUILD
index 5a87251..19a9172 100644
--- a/aos/util/BUILD
+++ b/aos/util/BUILD
@@ -333,6 +333,7 @@
     target_compatible_with = ["@platforms//os:linux"],
     deps = [
         ":file",
+        "//aos:realtime",
         "//aos/testing:googletest",
     ],
 )