Previous - sysFileSetDate Section Home - File System Next - sysFileVersionInfo


sysFileTemp ( )

Creates a temporary file that is guaranteed to be unique.

Usage:

sysFileTemp (object me, string folderPath, string prefix)

Parameters:

folderPath (string) - a string specifying the folder path to create the temp file

prefix (integer) - a prefix to attach to unique file name

Returns:

(string) - a string specifying the newly created unique file

Example:

xtRose = xtra("Rosetta").new( )
strNewFile = xtRose.sysFileTemp( "c:\program files\macromedia\Director 8.5\", "rose" )

Notes:

A file is automatically created when this function is called. The system will not automatically remove this temp file. Be sure to call sysFileDelete when the temp file is no longer needed.


Previous - sysFileSetDate Section Home - File System Next - sysFileVersionInfo