| 138 | }; |
| 139 | |
| 140 | inline |
| 141 | std::string |
| 142 | read_file( char const* path, boost::system::error_code& ec ) |
| 143 | { |
| 144 | file f; |
| 145 | f.open( path, "r", ec ); |
| 146 | if(ec) |
| 147 | return {}; |
| 148 | std::string s; |
| 149 | s.resize( f.size() ); |
| 150 | s.resize( f.read( &s[0], s.size(), ec) ); |
| 151 | if(ec) |
| 152 | return {}; |
| 153 | return s; |
| 154 | } |
| 155 | |
| 156 | inline |
| 157 | std::string |