MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: temporary file location

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54211] Re: [mg54145] temporary file location
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Sun, 13 Feb 2005 22:17:00 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Erich,

> 
> 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.

I can't speak for Mac's but Windows & Unix's have the TMP environment
variable that you can usually query.

Run["set | grep TMP > env.txt"];
test = Import["env.txt"]

YMMV with grep (esp. on Windows).  

Regards,

Dave.



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.7 - Release Date: 10/02/2005


  • Prev by Date: Re: FW: Monte Carlo status indicator
  • Next by Date: Re: Monte Carlo status indicator
  • Previous by thread: Re: temporary file location
  • Next by thread: Particle Filter