basic.close Statement/BASIC Program

basic.close

Command basic.close Statement/BASIC Program
Applicable release versions: AP
Category BASIC Program (486)
Description closes the file identified by "file.variable". If file.variable is not defined, the file referenced by the default file.variable is closed. This statement must be used if a file is opened and then a "delete-file" is executed with an "execute" statement.

Files "close" by default when a program ends.
Syntax close {file.variable}
Options
Example
open 'testfile' to testfile then
close testfile
execute 'delete-file testfile'
end
execute 'create-file testfile ':newdictmod:' ':newdatamod
Purpose
Related basic.statements
tcl.delete-file
basic.file.variable
basic.open
file.control.block