uttempfl.wbb - Create and Open a Temporary String File


CALL "uttempfl.wbb", tempfile$, tempchan


This low-level routine is used in the Win-CGI environment where temporary files are sometimes needed. It can also be used when files are uploaded and parsed through utcgi.wbb, or by the application developer, if a temporary string file is needed.




Returns the name generated for the file. If the environment variable "TEMP" is defined, it is assumed to point to a temporary file directory. Otherwise, in UNIX the "/tmp" directory is used, and finally, the current directory "." is used. To override this directory selection, create a global string (STBL) called $tempdir, and set its value to the directory to be used.


Returns the channel number used to open the file.