Brian Silverman | 61175fb | 2016-03-13 15:35:56 -0400 | [diff] [blame^] | 1 | #ifndef AOS_COMMON_UTIL_FILE_H_ |
2 | #define AOS_COMMON_UTIL_FILE_H_ | ||||
3 | |||||
4 | #include <string> | ||||
5 | |||||
6 | namespace aos { | ||||
7 | namespace util { | ||||
8 | |||||
9 | // Returns the complete contents of filename. LOG(FATAL)s if any errors are | ||||
10 | // encountered. | ||||
11 | ::std::string ReadFileToStringOrDie(const ::std::string &filename); | ||||
12 | |||||
13 | } // namespace util | ||||
14 | } // namespace aos | ||||
15 | |||||
16 | #endif // AOS_COMMON_UTIL_FILE_H_ |