Temporary filename

Previous topic - Next topic

MrTAToad

This generates a temporary filename - used to writing temporary data.  Note :  On a Windows machine, the filename includes a "\" character, meaning you will eithe rhave to append "." to it, or remove it

Code (glbasic) Select
INLINE
extern "C" char * tmpnam ( char * str );
ENDINLINE

FUNCTION generateTempName$:
LOCAL result$

INLINE
result_Str.assign(tmpnam(NULL));
ENDINLINE

RETURN result$
ENDFUNCTION