Asp+Txt简单例子

      我的日志 2008-6-24 17:36

Asp页面代码:

<%
set fs=server.createobject("scripting.filesystemobject")
file=server.mappath("count.txt")
set txt=fs.opentextfile(file,1,true)
if not txt.atendofstream then
line=txt.readline
line2=txt.readline
end if
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>
<p><a href="<%=line%>" target="_blank">126网站</a></p>
<p><a href="<%=line2%>" target="_blank">163网站</a> </p>
</body>
</html>

txt文件内容:

http://www.126.com/
http://www.163.com/

标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}