一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

asp教程:asp循环读取txt数数据

时间:2008-11-28 编辑:简简单单 来源:一聚教程网

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

输个字符串都在一行哈.

热门栏目