Make_Temp_File¶
Include: Use System\FileSystem.pkg
See Also: File_Exist, Make_Directory, Valid_Drive
Purpose¶
Creates a new empty temporary file and returns its name.
Syntax¶
Make_Temp_File [FILE] {Extension} [to] {FileName}
Arguments¶
FILE
: Optional file driver. The FILE driver is optional; when omitted, file operations use FILE.
{Extension}
: Extension to use for the temporary file name.
{FileName}
: String variable that receives the generated file name.
Example¶
String sFileName
Make_Temp_File FILE "df" sFileName
Make_Temp_File FILE "tmp" to sFileName
These examples create files whose names preserve the .df and .tmp extensions.