Skip to content

CSAVE

Versions: 8K (cassette), Extended (cassette)

Note: This command is not included in the DEC VT180 version or modern disk-based systems.

Purpose

To save the program or an array currently in memory on cassette tape.

Remarks

Each program or array saved on tape is identified by a filename. When the command CSAVE is executed, BASIC-80 saves the program currently in memory on tape and uses the first character in as the filename. may be more than one character, but only the first character is used for the filename. When the command CSAVE* is executed, BASIC-80 saves the specified array on tape. The array must be a numeric array. The elements of a multidimensional array are saved with the leftmost subscript changing fastest. CSAVE may be used as a program statement or as a direct mode command. Before a CSAVE or CSAVE* is executed, make sure the cassette recorder is properly connected and in the Record mode. See also CLOAD, Section 2.5. NOTE: CSAVE and CLOAD are not included in all implementations of BASIC-80.

Example

CSAVE "TIMER"
                Saves the program currently in memory on
                cassette under filename "T".

See Also

  • CLOAD - To load a program or an array from cassette tape into memory
  • CVI, CVS, CVD - Convert string values to numeric values
  • DEFINT/SNG/DBL/STR - To declare variable types as integer, single precision, double precision, or string
  • ERR AND ERL VARIABLES - Error code and error line number variables used in error handling
  • INPUT# - To read data items from a sequential disk file and assign them to program variables
  • LINE INPUT - To input an entire line (up to 254 characters) to a string variable, without the use of delimiters
  • LPRINT AND LPRINT USING - To print data at the line printer
  • MKI, MKS, MKD$ - Convert numeric values to string values
  • SPACE$ - Returns a string of spaces of length X
  • TAB - Spaces to position I on the terminal