Index: sources/storage/FileHandler.cpp =================================================================== diff -u -rca40cfec5ff6b63d4685ceb2e62ebe9366adcfd0 -r170fd9a04fab2e2ba96bdc16ca39f86789895937 --- sources/storage/FileHandler.cpp (.../FileHandler.cpp) (revision ca40cfec5ff6b63d4685ceb2e62ebe9366adcfd0) +++ sources/storage/FileHandler.cpp (.../FileHandler.cpp) (revision 170fd9a04fab2e2ba96bdc16ca39f86789895937) @@ -58,6 +58,22 @@ ++count; } +bool FileHandler::append(const QString &vSource, const QString &vTarget, bool vRemoveSource) { + bool ok = false; + QString content; + ok = read(vSource, content); + if ( ! ok ) goto lOut; + + ok = write(vTarget, content, true); + if ( ! ok ) goto lOut; + + if ( ! vRemoveSource ) goto lOut; + ok = QFile::remove(vSource); + if ( ! ok ) goto lOut; + +lOut: + return ok; +} /*! * \brief FileHandler::write * \details writes content vContent into the file vFileName.