Create and open a new temporary file with a name based on prefix.
Synopsis
Declared in <bdls_filesystemutil.h>
static
FileDescriptor
createTemporaryFile(
std::pmr::string* outPath,
std::string_view const& prefix);
Description
Same as the overload taking bsl::string *, using std::pmr::string.
Return Value
a valid FileDescriptor on success, or k_INVALID_FD otherwise
Parameters
Name |
Description |
outPath |
receives the path of the created file |
prefix |
prefix of the generated file name |
Created with MrDocs