[Date Index] [Thread Index] [Author Index]
Re: Open DumpSave in new context?
Hi, the *.mx file store the symbols with the context and so: you can't do that. Regards Jens karl.daggfeldt at gih.se wrote: > Is there a way to specify a new context for a DumpSave:d file when I open it? > The simple approach below is working when the file is saved with Save but not with DumpSave. > > (*DumpSave a to file*) > a=1; > DumpSave["temp.mx",a]; > Remove[a]; > > (*not generating myContext`a but rather Global`a*) > Begin["myContext`"]; > Get["temp.mx"]; > End; > > Greatefull for answers! > Kalle >