 | | When a program needs to create a temporary file, it is usually desirable to use a filename that is not likely to be used by another program or by another invocation of the current program. For example, if the C compiler always used the temporary file /tmp/c-compile, then only one program could be compiled on the system at a time. If two people tried to compile programs simultaneously, they would both be writing to the same temporary file, and neither would get anything useful out of the experience. For this reason, UNIX offers several functions for creating temporary files with unique names. | |
|