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