Read File Contents


<%@ Language=JavaScript %>

<%
var path = Server.MapPath("file_list_test_3.asp");
var fileSystem = Server.CreateObject("Scripting.FileSystemObject");
var file = fileSystem.OpenTextFile(path);
while (!file.AtEndOfStream) {
Response.Write(Server.HTMLEncode(file.ReadLine()) + "<br>");
}
file.Close();
file = null;
fileSystem = null;

%>

You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

AddThis Social Bookmark Button

Similar Posts

Comments are closed.