Equinox Online Help - Language Reference - A to Z

Home

WebOutputFile

Applies to
SyntaxWebOutputFile path [, unescaped]
ActionThis statement is exactly equivalent to calling FileReadFile followed by WebOutput.
ScopeUsed in method language on an ESP page
Notes

If the file does not exist or some other error occurs, SysError is set to a nonzero value.

CategoryWeb Server
See Also WebBaseDirectory, WebCurrentPage, WebGetCookies, WebGetHeader, WebOutput, WebParameter, WebPostData, WebRedirect, WebSetCookie, WebSetHeader
Example

This example shows the physical location of the page being displayed. Note that WebBaseDirectory is a file system string, and WebCurrentPage is an url

string s

s = WebBaseDirectory & WebCurrentPage

replace s, "/", "\"
replace s, "\\", "\"

weboutput "This page is " & s & "
"
weboutputfile WebBaseDirectory & "include\header.inc"