Included Files
Included Files
You can hide commonly used items in a separate .EXP file. This .EXP file can be included in a script by the statement
include “filename.exp”
When the compiler reads this statement, the compiler closes the original file and then opens filename.exp and begins reading it. The statements in filename.exp are treated no differently than statements in the original file. When the compiler is finished with filename.exp, it reopens the original file and resumes reading it from the statement following the include statement. This is similar to the C language #include. All of the Framework callin library functions and class definitions are hidden in files included by explain.exp, which is included in each standard script. You should also include this file in each script you write. Use the line
include “explain.exp”
Without this line you won’t have access to the Framework™ library functions.
Comments are closed.