Saving and Restoring Variables
Unlike f.varI = expr, the save function will create the variable varI in the file f if it does not already exist.
The restore function redefines the in-memory varI . If several binary files are open simultaneously, the f.varI syntax will be more useful for reading variables than the restore function.
Note that a single command can be used to create a binary file, save
variables varI in it, and close the file: