I have the following problem (I guess a very naive one): I work with some data and make a statistical analysis in Mathematica. I do it over several days and each time I open the file, I have to go through all previous lines of calculations, in order that all previously defined variables and data sets are uploaded into Mathematica's memory.

My question is, does there exist a command so that each time I open the file, all defined previously variables are put into the working memory automatically.


This most likely will be closed as duplicate, as pointed out by @Teake_Nutma, this has been answered already here. In the meantime, the trick basically is:

To save:

DumpSave["state.mx", "Global`"]

To load:


Not the answer you're looking for? Browse other questions tagged or ask your own question.