asp教程:asp循环读取txt数数据
<%
Set FS = Server.CreateObject("Scripting.FileSystemObject")
Set RS = FS.OpenTextFile(Server.MapPath("text") & "Tt.txt",1)
While not rs.AtEndOfStream
Response.Write RS.ReadLine
Response.Write("<br />")
Wend
%>
输出结果.
abc
bcd
cde
edf
好了下面来看看我们的Tt.txt文件吧.
abc
bcd
cde
edf
输个字符串都在一行哈.
时间: 2024-10-31 15:02:23