Skip to content

LOAD

Syntax

LOAD <filename>[,R]

Versions: Disk

Purpose

To load a file from disk into memory.

Remarks

is the name that was used when the file was SAVEd. (With CP/M, the default extension .BAS is supplied.)

File handling: - LOAD (without ,R): Closes all open files and deletes all variables and program lines currently in memory before loading - LOAD with ,R option: Program is RUN after loading, and all open data files are kept open for program chaining - Compare with MERGE: Never closes files (see MERGE)

The ,R option allows chaining several programs (or segments of the same program) while passing information between them using disk data files.

Example

LOAD "STRTRK"
LOAD "STRTRK",R    'Load and run immediately

See Also

  • KILL - To delete a file from disk
  • MERGE - To merge a specified disk file into the program currently in memory
  • NAME - To change the name of a disk file
  • SAVE - To save a program file on disk