Save session to a file
When a filename is given to save environment, if this file exists, Scilab returns an error message while Matlab save environment at the end of existing file (append).
Note that diary on and diary toggle exist only in Matlab.
The equivalent for Matlab diary off is diary(0) in Scilab.