
| <%
@ Language="JavaScript"
%>
<HTML> <BODY> <% var PathInfo = Request.ServerVariables("PATH_INFO") // gives us the virtual path of this file /* In order to read or write to a file we need to know the physical
path. // here we write out the physical path
of the file var fsObj = new ActiveXObject("Scripting.FileSystemObject"); /* ReadLine() reads from the file
line by line while Server.HTMLEncode(txtFile.ReadLine())
automatically encodes all characters (ö, ñ, etc...) for us while (!txtFile.AtEndOfStream) { //
while not at the end of the file read the next line %> </BODY> </HTML> |