![Anybus CompactCom 40 Common Ethernet Design Manual Download Page 34](http://html1.mh-extra.com/html/anybus/compactcom-40-common-ethernet/compactcom-40-common-ethernet_design-manual_2948756034.webp)
32 (104)
8.3.7
IncludeFile()
This command includes the content of a file. Note that the content is not scanned for SSI.
Syntax:
<?--#exec cmd_argument='IncludeFile("filename" [, separator])'-->
filename:
Source file
separator:
Optional; specifies line separation characters (e.g. “<br>”).
Default Output
Scenario
Default Output
Success
(file contents)
Authentication Error
“Authentication error”
File Open Error
“Failed to open file ‘
filename
’”
Example
The following example demonstrates how to use this function.
<HTML>
<HEAD><TITLE>IncludeFile Test</TITLE></HEAD>
<BODY>
<H1> Contents of ‘info.txt’:</H1>
<P>
<?--#exec cmd_argument='IncludeFile("info.txt")'-->.
</P>
</BODY>
</HTML>
Contents of ‘info.txt’:
Neque porro quisquam est qui dolorem ipsum quia dolor sit
amet,consectetur, adipisci velit...
Anybus
®
CompactCom
™
40 Common Ethernet Design Guide
HMSI-27–269 2.1