Re: temporary file location

*To*: mathgroup at smc.vnet.net*Subject*: [mg54185] Re: temporary file location*From*: Bill Rowe <readnewsciv at earthlink.net>*Date*: Sat, 12 Feb 2005 01:58:57 -0500 (EST)*Sender*: owner-wri-mathgroup at wolfram.com

On 2/11/05 at 3:35 AM, erich.neuwirth at univie.ac.at (Erich Neuwirth) wrote: >What is the best way of finding a directory where a temporary file >can be written? The methond should be as OS-independent as >possible. If what you are looking for is a directory where the OS will clean out temporary files, then the answer is inherently OS dependent. OTOH, if you intend for Mathematica to create the temporary file and later delete it as you specify, any directory you have access to will do. As long as you are tracking creation and deletion of files within Mathematica, you don't even need to specify a directory. You could simply use whatever directory Mathematica uses as a default which should be the directory returned by $HomeDirectory. -- To reply via email subtract one hundred and four