File

Temporary

#include "Poco/TemporaryFile.h"

std::string fileName;
fileName = Poco::TemporaryFile().tempName();

Note:

  • I think (not sure about this) that every time we call tempName we create a new temporary file.

  • To stop TemporaryFile from deleting the file:

    temporaryFile.keep();