| 250 | } |
| 251 | |
| 252 | void AppendFileToFile(string const & fromFilename, string const & toFilename) |
| 253 | { |
| 254 | ifstream from; |
| 255 | from.exceptions(fstream::failbit | fstream::badbit); |
| 256 | from.open(fromFilename, ios::binary); |
| 257 | |
| 258 | ofstream to; |
| 259 | to.exceptions(fstream::badbit); |
| 260 | to.open(toFilename, ios::binary | ios::app); |
| 261 | |
| 262 | auto * buffer = from.rdbuf(); |
| 263 | if (!IsEOF(from)) |
| 264 | to << buffer; |
| 265 | } |
| 266 | |
| 267 | bool CopyFileX(string const & fOld, string const & fNew) |
| 268 | { |