Chapter 10
I
BASIC
Keywords
NAME
Statement
NAME old filename AS new filename
Renames old filename as
new
filename.
With this statement, the data in the file is left unchanged. The
new filename
may not c o n t a i n p a t h , password, or drive
specification.
You can only rename a file in the current directory.
Example
N Q M E
"file.ba5"
A S
"f ile.old"
BASIC
renames
file.bas
as
file.old.
222