Skip to content

CLOAD

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

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

Purpose

To load a program or an array from cassette tape into memory.

Remarks

CLOAD executes a NEW command before it loads the program from cassette tape. is the string expression or the first character of the string expression that was specified when the program was CSAVEd. CLOAD? verifies tapes by comparing the program currently in memory with the file on tape that has the same filename. If they are the same, BASIC prints Ok. If not, BASIC prints NO GOOD. CLOAD* loads a numeric array that has been saved on tape. The data on tape is loaded into the array called specified when the array was CSAVE*ed. CLOAD and CLOAD? are always entered at command level as direct mode commands. CLOAD* may be entered at command level or used as a program statement. Make sure the array has been DIMensioned before it is loaded. BASIC always returns to command level after a CLOAD, CLOAD? or CLOAD* is executed. Before a CLOAD is executed, make sure the cassette recorder is properly connected and in the Play mode, and the tape is positioned correctly. See also CSAVE, Section 2.9. NOTE: CLOAD and CSAVE are not included in all implementations of BASIC.

Example

CLOAD "MAX2"
                Loads file "M" into memory.

See Also

  • CSAVE - To save the program or an array currently in memory on cassette tape
  • 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