blob: 385aba7025d397460885cbc8777b85731dc66f19 [file] [log] [blame]
John Park33858a32018-09-28 23:05:48 -07001#ifndef AOS_UTIL_FILE_H_
2#define AOS_UTIL_FILE_H_
Brian Silverman61175fb2016-03-13 15:35:56 -04003
4#include <string>
5
Austin Schuhcb108412019-10-13 16:09:54 -07006#include "absl/strings/string_view.h"
7
Brian Silverman61175fb2016-03-13 15:35:56 -04008namespace aos {
9namespace util {
10
11// Returns the complete contents of filename. LOG(FATAL)s if any errors are
12// encountered.
Austin Schuhcb108412019-10-13 16:09:54 -070013::std::string ReadFileToStringOrDie(const absl::string_view filename);
Brian Silverman61175fb2016-03-13 15:35:56 -040014
15} // namespace util
16} // namespace aos
17
John Park33858a32018-09-28 23:05:48 -070018#endif // AOS_UTIL_FILE_H_