Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: Exporting data into a file, OpenWrite

  • To: mathgroup at smc.vnet.net
  • Subject: [mg96982] Re: Exporting data into a file, OpenWrite
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Sun, 1 Mar 2009 04:54:40 -0500 (EST)
  • References: <gnq6s2$87n$1@smc.vnet.net> <200902241044.FAA23505@smc.vnet.net>

I usually use the Insert/File Path ...  menu to paste the file path.

Cheers -- Sjoerd

On Feb 27, 1:10 pm, DrMajorBob <btre... at austin.rr.com> wrote:
> I use either ToFileName or a variant of the following, when I want to  
> capture/create file or directory names:
>
> {FileNameSetter[Dynamic@ts, "Directory"], Dynamic@ts}
>
> I never, ever type in the file name by hand, so I never, ever get Windows=
  
> and Mac conventions confused.
>
> Bobby
>
> On Thu, 26 Feb 2009 06:59:59 -0600, Albert Retey <a... at gmx-topmail.de> =
 
> wrote:
>
>
>
> > peter wrote:
> >> no double-slashes for me thank you very much - I've got a Mac.
>
> >> 2009/2/24 Sjoerd C. de Vries <sjoerd.c.devr... at gmail.com>:
> >>> Bill Rowe wrote
>
> >>>> When you use Export, the file will be created in the current
> >>>> working directory.
> >>> I might add "...unless you include the full path to the file in the
> >>> filename (using double slashes to separate directories and files, as =
a
> >>> slash is used as an escape character in strings)"
>
> >>> Cheers -- Sjoerd
>
> > I think correctly you would call the character that you need to use on
> > Windows a backslash (\) and that's the one you need to escape, because
> > it is the escape character in Mathematica. On other systems you will
> > need other characters for separating directories in pathes, which one i=
s
> >  held in the variable $PathnameSeparator. AFAIK on Windows in many
> > places within Mathematica a single slash (/) will also work as a
> > pathname separator in filenames. Probably you shouldn't rely on that bu=
t
> > it's more convenient than the double backslash sometimes.
>
> > An even better approach is to construct the filename with the function
> > ToFileName, starting with one of the predefined directory variables you
> > can find with
>
> > Information["$*Directory*"]
>
> > hth,
>
> > albert
>
> --
> DrMajor... at bigfoot.com



  • Prev by Date: Delayed function does not behave as original input
  • Next by Date: Re: wrong solution for double integral of piecewise
  • Previous by thread: Re: Delayed function does not behave as original input
  • Next by thread: Re: wrong solution for double integral of piecewise