Name
tmpfile function — Opens a temporary file
Synopsis
FILE* tmpfile( )
The tmpfile
function
generates a unique filename and opens a file with that name using
mode "wb+
“. When the program
terminates normally, the file is automatically deleted. If the
temporary file cannot be created, a null pointer is returned.
See Also
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.