Temporary File - Creation

Creation

On POSIX systems, temporary files can be safely created with the mkstemp or tmpfile library functions, or with the mktemp program. These files are typically located in the standard temporary directory, /tmp on Unix machines or %TEMP% (which is log-in specific) on Windows machines.

A temporary file created with tmpfile is deleted automatically when the program exits or the file is closed. To generate a temporary file name that will survive past the lifespan of the creating program, tmpnam or GetTempFileName(...) (Windows only) can be used.

Read more about this topic:  Temporary File

Famous quotes containing the word creation:

    Like everything which is not the involuntary result of fleeting emotion but the creation of time and will, any marriage, happy or unhappy, is infinitely more interesting than any romance, however passionate.
    —W.H. (Wystan Hugh)

    Man is a masterpiece of creation if for no other reason than that, all the weight of evidence for determinism notwithstanding, he believes he has free will.
    —G.C. (Georg Christoph)

    There is an incompatibility between literary creation and political activity.
    Mario Vargas Llosa (b. 1936)