【www.gdgbn.com--php与数据库】
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("
")
Wend
%>
输出结果.
abc
bcd
cde
edf
好了下面来看看我们的Tt.txt文件吧.
abc
bcd
cde
edf
输个字符串都在一行哈.