PC Logo Wiki
Advertisement

Syntax

SAVE filename

SAVE filename.ext

(SAVE)

Explanation

SAVE saves the contents of the workspace of a file on the disk. This includes all defined procedures and names. SAVE outputs TRUE if the file is successfully saved; otherwise, it outputs FALSE.

If no file name extension is specified, SAVE saves the file with the name filename.LGO. To save a file that has no extension, a period is necessary after the filename.

Drive specifiers (A:, B:, etc.) can be used with SAVE, all colons must be preceeded with backslash (\). If a drive specifier is not used, SAVE saves a file to the currently selected drive. Function key F10 is equivalent to SAVE when Logo starts.

If SAVE is used without inputs or if the supplied file name contains wild card characters like ? or *, a dialog box will pop up, letting you select a file name.

See also LOAD, LOADPIC, SAVEPIC and SETDISK.

Examples

? SAVE "SHAPES

Saving workspace in file SHAPES.LGO

Result: TRUE

? SAVE "B\:SHAPES

Saving workspace in file SHAPES.LGO

Result: TRUE

?

Advertisement