RosettaCodeData/Task/Secure-temporary-file/Octave/secure-temporary-file.octave

4 lines
321 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
[FID, MSG] = tmpfile(); % Return the file ID corresponding to a new temporary
filename = tmpnam (...); % generates temporary file name, but does not open file
[FID, NAME, MSG] = mkstemp (TEMPLATE, DELETE); % Return the file ID corresponding to a new temporary file with a unique name created from TEMPLATE.