|
代码部分- <%
- Public Function OpenFile(Fname)
- dim whichfile
- whichfile=server.mappath(Fname)
- Set fso = CreateObject("Scripting.FileSystemObject")
- if fso.fileExists(whichfile) then
- Set txt = fso.OpenTextFile(whichfile,1,true)
- if not txt.atendofstream then
- rline=txt.ReadAll
- else
- rline=""
- end if
- OpenFile=rline
- txt.Close
- end if
- Set fso = Nothing
- END Function
- dim txt:txt= openfile("domain.txt")
- dim m,txt_sub
- dim domain:domain=""
- txt=split(txt,vbcrlf)
- for m=0 to ubound(txt)
- txt_sub=split(txt(m),"|")
- if instr(txt_sub(5),"goto")>0 then domain=domain&txt_sub(1)&","
- next
- response.Write domain
- %>
复制代码 完整文件参考附件 |
-
-
demo.rar
719 Bytes, 下载次数: 29, 下载积分: 威望 1 个
|