slurp.hh
author Volker Birk <vb@pep-project.org>
Thu, 14 Nov 2019 23:22:05 +0100
changeset 134 b6e70c7067b3
parent 35 bb2160848b1a
permissions -rw-r--r--
merging
     1 #ifndef PEP_LIB_SLURP_HH
     2 #define PEP_LIB_SLURP_HH
     3 
     4 #include <string>
     5 
     6 namespace pEp
     7 {
     8     // reads a whole file and returns it as std::string
     9     // throws std::runtime_error() if the file cannot be read. Empty file is not an error.
    10     std::string slurp(const std::string& filename);
    11 
    12 } // end of namespace pEp
    13 
    14 #endif // PEP_LIB_SLURP_HH