Sambar Server Documentation
|
CScript #include |
#include
#include "foobar.asp"
There is a subtle difference between using the #include directive with quotes (" ") versus the symbols (< >) inside the Sambar Server. When quotes are specified, the file is assumed to be relative to the current path of the currently executing script. So, if you are executing the script c:/docs/run.asp, the above include would look for foobar.asp in the c:/docs/ directory. The symbols (< >) direct the server to look for the file lib/mathlib.c relative to the installation directory of the Sambar Server. So if the server is installed in c:/sambar, the server will include c:/sambar/lib/mathlib.c in the above example. When using the bin/icscript executable, both directives map to the current working directory.
for (i = 0; i < 5; i++) { #include "foobar.asp" }
© 2001 Sambar Technologies. All rights reserved. Terms of Use.