MathGroup Archive 2006

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

Search the Archive

Re: file question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70666] Re: [mg70620] file question
  • From: "Chris Chiasson" <chris at chiasson.name>
  • Date: Sun, 22 Oct 2006 01:20:30 -0400 (EDT)
  • References: <200610210914.FAA29121@smc.vnet.net>

SetDirectory[$BaseDirectory]
If you want that to be the default, find your $UserBaseDirectory, make
a subfolder called Kernel, and put the command in a file called init.m

On 10/21/06, dimitris <dimmechan at yahoo.com> wrote:
> Hello.
>
> I have a simple question
>
> Suppose the following
>
> OpenWrite["file1.dat"]
> OutputStream["file1.dat", 6]
>
> Do[WriteString["file1.dat", i, "    ", i^3, "\n"], {i, 1, 8}];
> Close["file1.dat"]
> "file1.dat"
>
> The created file is saved in the following directory
>
> Directory[]
> "C:\\Program Files\\Wolfram Research\\Mathematica\\5.2"
>
> How can I save a file created in this way in another directory
> e.g. in
>
> $BaseDirectory
> "C:\\Documents and Settings\\All Users\\Application Data\\Mathematica"
>
> Thanks.
>
>


-- 
http://chris.chiasson.name/


  • References:
  • Prev by Date: Re: PageWidth option is not measured in characters
  • Next by Date: Built-in symbols arguments
  • Previous by thread: file question
  • Next by thread: RE: file question