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

MathGroup Archive 2007

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

Search the Archive

Re: including part of files ?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg74539] Re: including part of files ?
  • From: Peter Pein <petsie at dordos.net>
  • Date: Sun, 25 Mar 2007 01:24:38 -0500 (EST)
  • References: <eu1rg9$kq9$1@smc.vnet.net>

bar at ap.krakow.pl schrieb:
> Is it possible to include/insert  files as part of notebook or *. files?
> 
> The header of many my files are the same - they contained constant definition.
> When i have to change some parameters, I have to change many files, 
> It's not convenient for me. 
> 
> Is the better way to do it ? 
> 
> regards, Olaf
> 
> 
Hi Olaf,

I would put the parameters into a file, say parameters1.m, which would look like;
a=1;
b=a+2;
....

and the notbook containing the algorithms would start with
SetDirectory["Path to parameter files"];
Get["parameters1.m"];
...

But this seems to obvious to me; maybe I misunderstood you?

Peter


  • Prev by Date: No O Reilly Mathematica Cookbook
  • Next by Date: Re: including part of files ?
  • Previous by thread: Re: Re: Re: No O Reilly Mathematica Cookbook
  • Next by thread: Re: including part of files ?