RESAVE


General Form:

     RESAVE [<[S][R][!]>] [#stream,] filename [start_line] [,end_line]

Where:

     start_line, end_line      = valid program line numbers within the range 0 < 32000


The RESAVE statement saves the program currently in memory over an existing program file. The filename specifies the file to be overwritten. The RESAVE statement is particularly powerful when combined with the $PROG function to save the last program loaded onto the disk. This should not be done when programs may have been overlaid as the combined programs will be saved into the one file.

To scramble a program so that it cannot be listed when LOADed, the ! is used in conjunction with the SELECT PASSWORD command. See SELECT PASSWORD.

Syntax examples:

RESAVE "TESTPROG"
RESAVE #10,prog$(3)
RESAVE $PROG 400, 9000

See also:

$PROG, REMOVE, SAVE, SELECT PASSWORD