Navigation

Operators and Keywords

Function List:

C++ API

: [fid, msg] = tmpfile ()

Return the file ID corresponding to a new temporary file with a unique name.

The file is opened in binary read/write ("w+b") mode and will be deleted automatically when it is closed or when Octave exits.

If successful, fid is a valid file ID and msg is an empty string. Otherwise, fid is -1 and msg contains a system-dependent error message.

See also: tempname, mkstemp, tempdir, P_tmpdir.

Package: octave