[erlang-questions] Temp directory/file from Erlang
Fri Sep 25 15:03:00 CEST 2009
On Fri, Sep 25, 2009 at 12:10, Federico Fissore <federico@REDACTED> wrote:
> Pierpaolo Bernardi, il 25/09/2009 11:56, ha scritto:
>> On Fri, Sep 25, 2009 at 10:53, Dmitrii Dimandt <dmitriid@REDACTED> wrote:
>>> Hi all
>>> Is there a way to find out the path to the system's temp directory and/or
>>> create a temporary file?
>> The usual way is to check the TEMP and/or TMP environment variables.
> uhm, on linux I have no TEMP nor TMP env vars
oops. You are right. I misremembered the unix convention.
On unix, /tmp and /var/tmp are assumed to exist.
On windows is used the env var TEMP.
(More info here: http://en.wikipedia.org/wiki/Temporary_folder )
More information about the erlang-questions