User Command SAVE (Dyalog)

Overview

SAVE is a command used to store an object stored in the workspace into a Unicode text file.

SAVE is one of the SALT commands made into a user command.

Assumptions

The argument to SAVE is an object name possibly followed by a file path to the file where the object is to be stored. The path may be full or relative. In the latter case SAVE will use the 'workdir' setting to store the file. Any extension is possible. If no extension is supplied SAVE will use .dyalog.

NOTE: script files with an extension different from .dyalog are not reported by the LIST user command.

Implementation

SAVE initially requires a path to store the object's representation after the object name. The object may be a namespace (e.g. class) or a function. Once saved the object is tagged and subsequent use of save only requires the object name as argument as the location can be deduced from the tag.

If SALT is enabled the editor will pick up any changes made to the object after editing it and save it back onto disk automatically (provided you agree with this).

SAVE accepts a series of switches to alter its functionality:

Samples

 ]SAVE object  my\favorite\script -version 

Version

This script is part of the Dyalog product. For that reason this page is immutable.

The script is version 1.0 from 2007

Author: DanBaronet


CategoryDyalogUserCommands

UserCommands/SALT/Save (last edited 2009-11-04 07:25:52 by DanBaronet)