261 LOAD Purpose To load a program into the computer from cassette tape, disc or Econet, whichever is the current filing system. For example Once the program has been loaded, type RUN to start it. LOAD "GAME1" When you use the word LOAD , the computer forgets any previous program it had in memory and also the values of all variables. If you are loading from disc then the file name (enclosed in quotes) must be a string of not more than seven characters in length (or ten characters for the Advanced Disc Filing System). If a disc directory is specified then you do this by putting the directory character before the file name, like this:
If you wish to load from a drive other than the one currently selected then the drive number also is included in the quotes preceded by a colon. For example LOAD "B.GAME1" LOAD ":0.D.GAME1" will load a file called GAME1 in directory D from drive 0 . If you are loading from cassette, then the computer will show the name of each section of the program as it finds it on the cassette. The file name (enclosed in quotes) may be up to ten characters in length. LOAD"" (with no file name) will load the next program found on cassette, whatever its name. This does not work on disc or Econet or other filing systems. LOAD does not run a program. It just loads a file into memory.
It clears all variables except A% to Z% and @ %. The command LOAD cannot be used in a program. The statement CHAIN can be used in a program (or as a command) to load another program and to start that program running automatically. Examples LOAD "STARWARS" LOAD "MYPROG"