a5_create_tempfile Function
Syntax
C a5_create_tempfile([C extension [,C folder [,L flagUseGuid ]]])
Arguments
- extensionCharacter
Default = ".tmp". The file extension for the temporary file.
- folderCharacter
Default = Windows temp folder. Location to create the file.
- flagUseGuidLogical
If true, the generated file name is a GUID.
Returns
- resultCharacter
Returns the fully qualified temporary file name.
Description
Creates a temporary file with the specified extension. If extension is not specified, then extension of .tmp is used. If folder is not specified, then uses Windows temp folder. File is automatically deleted when Alpha Anywhere is closed.
Example
? a5_create_tempfile() = "C:\Users\username\AppData\Local\Temp\AlphaAnywhere\p_3960\a5_temp_d8193ab4_53cc_4063_a7f5_c1009fbd7c43.tmp" ? a5_create_tempfile(".tmp","",.f.) = "C:\Users\username\AppData\Local\Temp\AlphaAnywhere\p_3960\$$9D9620201019154245063.tmp"
See Also