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 ?