|
|
- Save
- Save an object to a file in different formats.
- Usage
- Save(obj, filename)
Save(obj, file, Format-> Binary)
- Arguments
- obj (T) : the object can have any type.
filename (STRING): identifies the file in which the object obj is saved.
- Optional Arguments
- Optional arguments can exist depending on the type of the first argument. By default an ASCII form of the object is saved. This default can be changed using the optional argument Format (STRING) which specifies the format to be used (ASCII, BINARY). In version 1.x of AMAPmod, not all objects have a Binary format option. Objects that cannot be saved in Binary need to be recomputed each time AML is launched. This will be corrected in version 2.
- Returned Object
- No value is returned.
- Description
- Save an object to a file in different formats.
- See Also
-
Load,
Object constructors,
Display.
Examples
AML># Saving an array
AML> a1 = [1,2,3,4,5,6] # builds a simple array.
AML> Save(a1, "file1.dat") # Save the array to file named
# file1.dat
|