Node:source, Previous:Global Variables, Up:Commands


In common with other scripting languages, there is a command for evaluating the contents of a file in the Tcl interpreter:

source fileName

where fileName is the filename of the file containing the Tcl source to be evaluated. Control returns to the Tcl interpreter once the file has been evaluated.