Save

Save["filename",symbol]
appends definitions associated with the specified symbol to a file.

Save["filename","form"]
appends definitions associated with all symbols whose names match the string pattern .

Save["filename","context`"]
appends definitions associated with all symbols in the specified context.

Save["filename",{object1,object2,}]
appends definitions associated with several objects.

DetailsDetails

  • Save uses FullDefinition to include subsidiary definitions.
  • Save writes out definitions in InputForm.
  • Save uses Names to find symbols whose names match a given string pattern.
  • You can use Save["filename","s"] to write out the definition for the value of a symbol s itself.
Introduced in 1988
(1.0)
| Updated in 1996
(3.0)