See Also: File_Exist, Get_Directory, Make_Directory, Remove_Directory, Set_Directory, Valid_Drive
To create a new, empty disk file.
Make_Temp_File {temp-extension} {file-name}
where:
{file-name} may not be a constant or an expression.
Make_Temp_File creates a file in the current folder with a unique name, using the specified tempExtension, and returns the unique name that was generated.
In this example, a file is created with the extension tmp and places the generated rootname in the value of String variable sTempFileName.
String sTempFileName
Make_Temp_File "tmp" sTempFileName
If, for any reason, the file cannot be created on the current folder, an error will be reported.
Despite the command name, the file that is created is not actually "temporary," i.e., the file will not automatically self-delete at the completion of your program's execution. If you do not wish the file to remain, your program must delete it.