[#BloombergLP-bdls-FilesystemUtil-createTemporaryFile-08] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::createTemporaryFile :relfileprefix: ../../../ :mrdocs: Create and open a new temporary file with a name based on `prefix`. == Synopses Declared in `<bdls_filesystemutil.h>` Create and open a new temporary file with a name based on `prefix`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdls/FilesystemUtil/FileDescriptor.adoc[FileDescriptor] xref:BloombergLP/bdls/FilesystemUtil/createTemporaryFile-03.adoc[createTemporaryFile]( xref:bsl/string.adoc[bsl::string]* outPath, std::string_view const& prefix); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/createTemporaryFile-03.adoc[_» more..._]# Create and open a new temporary file with a name based on `prefix`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdls/FilesystemUtil/FileDescriptor.adoc[FileDescriptor] xref:BloombergLP/bdls/FilesystemUtil/createTemporaryFile-02.adoc[createTemporaryFile]( std::pmr::string* outPath, std::string_view const& prefix); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/createTemporaryFile-02.adoc[_» more..._]# Create and open a new temporary file with a name based on `prefix`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdls/FilesystemUtil/FileDescriptor.adoc[FileDescriptor] xref:BloombergLP/bdls/FilesystemUtil/createTemporaryFile-00.adoc[createTemporaryFile]( std::string* outPath, std::string_view const& prefix); ---- [.small]#xref:BloombergLP/bdls/FilesystemUtil/createTemporaryFile-00.adoc[_» more..._]# == Return Value a valid `FileDescriptor` on success, or `k_INVALID_FD` otherwise == Parameters [cols="1,4"] |=== | Name| Description | *outPath* | receives the path of the created file | *prefix* | prefix of the generated file name |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#