LOAD ASCII


General Form:

     LOAD ASCII strexpr

Where:

     strexpr                = the name of a file


This command allows the loading and compiling of an ASCII file into memory, merging it with any program text already there. It is a command and is therefore not programmable however since KCML 3.0 LOAD itself can load programs in source form.

The file names are searched for in the current working directory irrespective of any SELECT DISK or SELECT #0. However, full Unix/DOS pathnames may be used.

Such files may contain immediate mode statements and commands; these will be executed line by line as the file is read during the LOAD ASCII command. However you should not use RUN, LOAD (of an ascii program), $COMPILE or LOAD ASCII in such scripts. The command is more or less equivalent to SELECT CI and redirects the keyboard to a file.

Example:

Using a Unix or Windows editor, e.g 'vi' or 'NOTEPAD', a script is created containing the following lines:

RENAME EACH$ TO RECORD$
RENAME QUICK$ TO WORK$
RENAME '100 TO 'GET_NEXT_RECORD

Then when editing a program, entering LOAD ASCII "map" will execute the RENAME commands for the program currently in memory.

See also:

LOAD, SAVE ASCII