17 inline void openFile(
const std::string& fname, streamptr& strm) {
19 strm->open(fname.c_str());
21 if (strm->good()) std::cout <<
"Open file: " << fname << std::endl;
24 std::string
msg =
"Error opening file " + fname;
25 throw std::runtime_error(
msg);