Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: temporary file location

  • To: mathgroup at smc.vnet.net
  • Subject: [mg54155] Re: temporary file location
  • From: "John Jowett" <John.Jowett at cern.ch>
  • Date: Sat, 12 Feb 2005 01:57:03 -0500 (EST)
  • Organization: CERN
  • References: <cuhspq$9j8$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Erich Neuwirth" <erich.neuwirth at univie.ac.at> wrote in message 
news:cuhspq$9j8$1 at smc.vnet.net...
> 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.
>

$TemporaryPrefix  returns exactly that.
It is only mentioned in the Help Browser under OpenTemporary.

When I want to get the filename of a temporary file to work with I do 
something like

tempFile = Close[OpenTemporary[]]

or

tempFile = Close[OpenTemporary[]]<>".m"

John Jowett



  • Prev by Date: Re: VertexStyle determined by List elements
  • Next by Date: Re: Algebraic Symbol Manipulation
  • Previous by thread: temporary file location
  • Next by thread: Re: temporary file location