MathGroup Archive 2005

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

Search the Archive

Re: temporary file location

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

"Erich Neuwirth" <erich.neuwirth at> wrote in message 
news:cuhspq$9j8$1 at
> 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[]]


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