Skip to content
Andrew Owen edited this page May 30, 2023 · 2 revisions

LOAD


LOAD file_spec [,{"R"|"T"}]

Loads the program stored in a file into memory. Existing variables will be cleared and any program in memory will be erased. LOAD implies a [CLEAR](CLEAR).

If ,"R" is specified, keeps all data files open and runs the specified file. If ,"T" is specified, loads a tokenized program.

Parameters

The string expression file_spec is a valid filespec indicating the file to read the program from.

Notes

  • Unlike Microsoft BASIC, SE Basic IV always expects BASIC programs to be in plain text format.
  • Unlike Microsoft BASIC, the R directive must be in quotes. Otherwise SE Basic IV would treat it as a variable.

Errors

  • file_spec has a numeric value: Type mismatch.
  • file_spec contains disallowed characters: Bad file name.
  • The file specified in file_spec cannot be found: File not found.
  • A loaded text file contains lines without line numbers: Direct statement in file.

Welcome to the SE BASIC wiki


  • Press RETURN to return to this menu.
  • Enter the name of a TOPIC to display it.
  • Enter EXIT to return to BASIC.

Choose from the following topics:

  1. Quick start guide: QUICK
  2. User's guide: USER
  3. Configuration guide: CONFIG
  4. Language guide: LANGUAGE
  5. Language reference: BASIC
  6. Technical reference: TECH
  7. Developer's guide: DEV
  8. Acknowledgemets: CREDITS
  9. Licenses: LICENSE
Clone this wiki locally