command/SAVE command/SAVE
NAME
SAVE -- Stores program in a storage device
ABBREVIATION
s <shift> A
SYNOPSIS
SAVE [<file>[,<device>[,<eot_flag>]]]
FUNCTION
This command stores a program currently in memory onto a tape or disk.
If you just type the word SAVE and press <return>, your computer
attempts to store the program on the tape. It has no way of checking if
there is already a program on the tape in that location, so be careful
with your tapes. If you type SAVE command followed by a name in quotes
or a string variable name, the computer gives the program that name, so
it may be more easily located and retrieved in the future. If you want
to specify a device number for the SAVE, follow the name by a comma
(after the quotes) and a number or numeric variable. After the number on
a tape command, there can be a comma and a second number (0 or 1). If
the second number is 1, the computer puts an END-OF-TAPE marker
(<eot_flag>) after your program. If you are trying to LOAD a program and
the computer finds one of these markers rather than the program you are
trying to LOAD, you get a FILE NOT FOUND ERROR.
INPUTS
<file> - file name
<device> - storage device number
<eot_flag> - end-of-tape flag (0 or 1)
RESULT
The program currently in memory is stored in a storage device.
EXAMPLES
SAVE
Stores program to tape without a name.
SAVE "MONEY"
Stores on tape with name MONEY.
SAVE A$
Stores on tape with name in variable A$.
SAVE "YOURSELF",8
Stores on disk with name YOURSELF.
SAVE "GAME",1,1
Stores on tape with name GAME and places an END-OF-TAPE marker after
the program.
NOTES
Device 1: tape drive.
Device 8: disk drive.
BUGS
None
SEE ALSO
DLOAD
DSAVE
LOAD