<!--#include file="news_session.asp"--> <% dim id id=Request.QueryString ("id") dim myfso set myfso=createobject("scripting.filesystemobject") if myfso.FileExists(server.mappath("./news_content/"&id&".txt"))then myfso.DeleteFile (server.mappath("./news_content/"&id&".txt"))'#############删除新闻内容 end if
dim mytext2,myread2 set myread2=myfso.opentextfile(server.mappath("./new_list.asp"),1,0) if myread2.atendofstream then Response.Write "没有新闻内容" myread2.close Response.End end if mytext2=myread2.readall myread2.close dim listarray,i,h,count,sf,title listarray=split(mytext2," |
关键词: 用文本+ASP打造新闻公布系统(4)新闻删除