Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

tempname

Returns an unique temporary filename.

Syntax

  • f = tempname()
  • f = tempname(path)

Input argument

  • path - a string: an existing directory used instead of tempdir().

Output argument

  • f - a string: an unique temporary filename.

Description

Returns the name of an unique temporary filename.

Example

r = tempname()

See also

mkdir, tempdir.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET