C++11 library providing functionality common to all adapters.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
339 B

  1. #ifndef PEP_LIB_SLURP_HH
  2. #define PEP_LIB_SLURP_HH
  3. #include <string>
  4. namespace pEp
  5. {
  6. // reads a whole file and returns it as std::string
  7. // throws std::runtime_error() if the file cannot be read. Empty file is not an error.
  8. std::string slurp(const std::string& filename);
  9. } // end of namespace pEp
  10. #endif // PEP_LIB_SLURP_HH