Tandy 1000 Basic Reference Manual page 302

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

ChaDter 10 I BASIC Kevwords
SAVE
Statement
SAVE pathname [,AI
SAVE pathname [,PI
Saves a program on disk with the specified name.
Pathname is a standard file specification as described in Chapter
1. When you save a file to disk, you must specify the filename. If
the file already exists on disk, its contents are lost when the file
is re-created.
The A option tells BASIC to save the program in ASCII format.
If
you omit the A option, BASIC saves the file in a compressed
format.
The compressed format takes less disk space than ASCII format.
Also BASIC can save and load in compressed format faster than
in ASCII format. BASIC programs are stored in RAM using
compressed format.
Use the ASCII format if you plan to use the MERGE command
to merge the program with another. Also, data programs that be
read by other programs usually must be in ASCII.
When using the ASCII option, be sure your program has no
embedded line feeds; otherwise, the computer will not be able
t o
read it properly. Embedded line feeds are produced by typing
[ C T R L ] [ T ]
in a program line.
For compressed-format programs, a useful convention is the ex-
tension .bas. For ASCII-format programs, use
.txt.
The
P
option protects the file by saving it in an encoded binary
format. When a protected file is later run (or loaded), any at-
tempt to list or edit it fails. The only operations that you can
perform on a protected file are RUN, LOAD, and CHAIN.
300

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents