save - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


The save Statement

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

save name1, name2, ..., namek, fileName

Parameters

name1, name2, ..., namek

-

names or symbols; sequence of one or more specified variables

fileName

-

name or string; name of the file to use

Description

• 

The save name1, name2, ..., namek, fileName function writes the specified variables name1, name2, ..., namek into fileName as a sequence of assignment statements. If a particular namei is not assigned a value, the assignment namei := namei is written.

• 

Each argument except the last one is "evaluated to a name", while the last argument (the file name) is fully evaluated.

• 

If fileName contains unusual characters (e.g., "/", ".", etc.) then the name must be entered as a string and enclosed in double quotes.

• 

If fileName ends with the characters ".m" then namei and the assigned values are written into the file in Maple internal format. Otherwise, Maple language format is used.

  

Note: Make sure you have write access to the directory in order to execute this command.  For more information on ensuring permissions to save to a file, see the permission denied help page.

• 

See file for information on file names.

Examples

savea,b,c,temp.m:

See Also

anames

convert

file

lprint

name

read

savelib

writeto