This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

DumpSave

DumpSave
writes definitions associated with a symbol to a file in internal Mathematica format.
DumpSave
writes out definitions associated with all symbols in the specified context.
DumpSave
writes out definitions for several symbols or contexts.
DumpSave
chooses the name of the output file based on the computer system used.
  • DumpSave writes out definitions in a binary format that is optimized for input by Mathematica.
  • Each file has a plain text header identifying its type and contents.
  • Files written by DumpSave can only be read on the same type of computer system on which they were written.
  • DumpSave will not preserve open stream and link objects.
  • Files written by DumpSave conventionally have names that end with .mx.
  • DumpSave writes a file with a name such as package.mx/(value of $SystemID)/package.mx.
  • You can use DumpSave to write out the definition for the value of a symbol s itself.
  • You can typically read a dump file when you start Mathematica by using the command-line option.
Save all definitions for a function in a binary file:
Set the directory to a place for temporary files:
Save all definitions for f:
Clear definitions for f:
Restore the definitions for f from the file:
Reset to the original directory:
Save all definitions for a function in a binary file:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Set the directory to a place for temporary files:
In[3]:=
Click for copyable input
Out[3]=
Save all definitions for f:
In[4]:=
Click for copyable input
Out[4]=
Clear definitions for f:
In[5]:=
Click for copyable input
Restore the definitions for f from the file:
In[7]:=
Click for copyable input
In[9]:=
Click for copyable input
Out[9]=
Reset to the original directory:
In[10]:=
Click for copyable input
New in 3