读取文本文件中所有的行 <% Set fs=Server.CreateObject("Scripting.FileSystemObject") Set f=fs.OpenTextFile(Server.MapPath("/text/testread.txt"), 1) do while f.AtEndOfStream = false Response.Write(f.ReadLine) Response.Write("") loop f.Close Set f=Nothing Set fs=Nothing %>
读取文本文件中所有的行
效果会显示在右边 Create by 软晨网(RuanChen.com)