Creating Temporary Files using tmpfile Function





This video tutorial made by the Learning Lad teaches how to create temporary file  in c using the tmpfile() function.

This Tutorial begins with  the syntax of tmpnam function which is
FILE *fp tmpfile()
with its return values.
It also explains the file opening mode in which the temporary file will be created and opened,how to write data to the temporary file, how to read data from the temporary file, how many  files can be created and opened in a c program at a time defined in the stdio.h header file .
Then you will learn how to use the tmpfile function in your program by demonstrating read and write operation to the temporary file in detail with an example.



Back To Top