25 fs::path tmpDir = fs::temp_directory_path();
26 fs::path namedTempFile{tmpDir / fileName};
27 if (fs::exists(namedTempFile))
29 fs::remove(namedTempFile);
fs::path NamedTempFile(const char *fileName)
Returns a path to a file in the system temporary folder. If the file existed it will be deleted...