源代码:
<% Set FS = Server.CreateObject("Scripting.FileSystemObject") Set RS = FS.OpenTextFile(Server.MapPath("text") & "TextFile.txt",1) While not rs.AtEndOfStream Response.Write RS.ReadLine Response.Write("
") Wend %>
运行结果:
<% Set FS = Server.CreateObject("Scripting.FileSystemObject") Set RS = FS.OpenTextFile(Server.MapPath("text") & "TextFile.txt",1) While not rs.AtEndOfStream Response.Write RS.ReadLine Response.Write("
") Wend %>