This language bar is your friend. Select your favorite languages!
Select your favorite languages :
- Or search :
const char tmpl[] = "XXXXXX.tmp";
int fd = mkstemp(tmpl);
Template must contain six X characters that will be modified by mkstemp
const resultOfCallback = tempy.file.task(tempFile => {
// do something with tempFile
})
tempFile is automatically cleaned up after the callback is executed. resultOfCallback is the return value of the callback.
my $path = tempfile;
Returns a Path::Tiny object. To return the path as a string, call tempfile->stringify.
my $fh = tempfile();
# or
my ($fh, $filename) = tempfile();
Core module File::Temp provides many different options from creating temporary files. This is the simplest. $fh is a file handle.
$filename is a path and file name.
$filename is a path and file name.
file = Tempfile.new('foo')
A unique filename in tmpdir , e.g.: "/tmp/foo.24722.0"
programming-idioms.org