Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- dBsee 4.6 - The Library - <b>dffiletemp()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
dfFileTemp()
Opens a temporary file
------------------------------------------------------------------------------
Syntax:

     dfFileTemp( [@][<cPath>] ) --> nHandle

Parameters:

     <cPath>    Owning directory of the temporary file. If not specified,
     the directory specified in the TEMP variable will be used.
     If the argument is passed by reference, it will be modified
     to the name of the opened file.

Returns:

     <nHandle> Handle of the opened file. If 0, some problems have occurred
     during creation.

Description:

     This function creates a temporary file, which can be used for storing
     temporary information, being sure not to overwrite other files.

Example:

     LOCAL nHnd, nHnd2, nHnd3, cPath := "C:\TEMP"
     nHnd  := dfFileTemp( )
     ? nHnd          // E.g. 6
     nHnd2 := dfFileTemp( cPath )
     ? nHnd2, cPath  // E.g. 7, "C:\TEMP"
     nHnd3 := dfFileTemp( @cPath )
     ? nHnd3, cPath  // E.g. 8, "C:\TEMP\ASDHEFTG"

See also:

     dfFOpen()

See Also: dfFOpen()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson