tmpfile

tmpfile — generates temporary output file names.

Syntax

tmpfile (file_prefix?)

		

Arguments

file_prefix

A optional string specifying the beginning of a file name.

Returns

A string representing a file name which is guaranteed not to exist at the time that the function was called.

Description

This function is used to generate a temporary output file name. The file_prefix can specify any part of a file path. If the file_prefix is nil, then "/tmp/lisp_t" will be used. Typically the resulting file name will be the result of appending a number to the file prefix.

Example

Gamma> tmpfile();
"/tmp/lisp_t1"
Gamma> tmpfile("/tmp/atempfile");
"/tmp/atempfile2"
Gamma> tmpfile("/tmp/atempfile");
"/tmp/atempfile3"
Gamma> tmpfile("/tmp/atempfile");
"/tmp/atempfile4"
Gamma> tmpfile("anotherfile");
"anotherfile5"
Gamma>