asp逐行读取txt,输出时每行加上超连接。

2024-11-30 00:55:46
推荐回答(1个)
回答1:

Set objFso = server.createobject("Scripting.FileSystemObject")
Set objFile = objFso.OpenTextFile(Server.MapPath(strFileName))
Do While Not objFile.AtEndOfStream
strLine = objFile.ReadLine
response.write ""&strLine&"
"
Loop
Set objFile = nothing
Set objFso = nothing