John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 1 | #ifndef AOS_UTIL_FILE_H_ |
| 2 | #define AOS_UTIL_FILE_H_ |
Brian Silverman | 61175fb | 2016-03-13 15:35:56 -0400 | [diff] [blame] | 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 | |
John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame^] | 16 | #endif // AOS_UTIL_FILE_H_ |