fileio/
mg_temp_filename.pro
includes main-level programRoutines
top mg_temp_filename
result = mg_temp_filename(format [, length=integer] [, n_decimals=integer])
Create a temporary filename from a C-style format.
Return value
string
Parameters
- format in required type=string
C-style format string to specify the base filename; should include one
%s
to be filled in by a time stamp
Keywords
- length in optional type=integer default=15L
number of characters in the time stamp, will be increased to fit the
n_decimals
specified- n_decimals in optional type=integer default=3L
number of decimal places to include in the time stamp, default is 3, i.e., milliseconds
Examples
Try the main-level example program at the end of this file:
IDL> .run mg_temp_filename
File attributes
Modification date: | Thu Jun 12 14:42:31 2014 |
Lines: | 12 |
Docformat: | rst rst |
Contact me if you have enhancement requests or bug fixes.