| 318 | } |
| 319 | |
| 320 | void Base::XMLReader::readCharacters(const char* filename, CharStreamFormat format) |
| 321 | { |
| 322 | Base::FileInfo fi(filename); |
| 323 | Base::ofstream to(fi, std::ios::out | std::ios::binary | std::ios::trunc); |
| 324 | if (!to) { |
| 325 | throw Base::FileException("XMLReader::readCharacters() Could not open file!"); |
| 326 | } |
| 327 | |
| 328 | beginCharStream(format) >> to.rdbuf(); |
| 329 | to.close(); |
| 330 | endCharStream(); |
| 331 | } |
| 332 | |
| 333 | std::streamsize Base::XMLReader::read(char_type* s, std::streamsize n) |
| 334 | { |