fnDbugFileContents() fnDbugFileContents(...) SYNTAX fnDbugFileContents(FirstFile, [SecondFile], bShowInvisible) DESCRIPTION This function displays the contents of two text based files in a web-page EXAMPLE <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> fnDbugFileContents _ "c:\inetpub\wwwroot\testpages\testfnShowRecord.asp", _ "c:\inetpub\wwwroot\testpages\testfnDisplayRecordset.asp", '--<--<--<--<--<--<--<--<--< %> RESULTS [partial] [continued] PARAMETERS sFile--String this required parameter contains the full path and name of the file to be displayed [sFileB]-- String this (optional parameter) is a second file which will be displayed alongside the first file (for comparison purposes) [sShowInvisible]-- Boolean, determines if invisible control characters are displayed as visible symbols in the web-page. The codes used to display the 'white space' characters are as follows: [\n] New-Line [\r] Carriage Return [\t] Tab [\f] Form Feed STATUS working LAST MODIFIED 6 April 2000 PROGRAMMER Matthew Bishop DEPENDENCIES fnErrorMessage [fnErrorMessage.asp] LOCATION c:http://www.geocities.com/matth3wbishop/eg/asp/ DOCUMENTATION http://www.geocities.com/matth3wbishop/eg/asp/ COMMENTS: a) This function can be used to view the source code of web-pages since the HTML is not rendered. Note: if you are using Jscript (server side) you must write your file paths with 2 backslashes ('\\') instead of one because the backslash is an escape character in J(ava)Script. b) Should make the second parameter optional, at the moment it is required Additional Example <%@ Language=VBScript %> <% Response.Buffer = true %> <% '-->-->-->-->-->-->-->-->--> fnDbugFileContents("c:\boot.ini", "c:\blah.txt", true) '--<--<--<--<--<--<--<--<--< %> RESULTS The contents of both files are displayed on the web page side by side and 'white space' characters are displayed as codes