You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libpEpAdapter/slurp.hh

14 lines
339 B
C++

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