asp 计数器程序求解读
各位大侠: 小弟求解读计算机程序 尤其是红色部分 小弟先谢谢了
<%
function counts(counterfile)
dim objfso,objts
application.lock
set objfso=server.createobject("scripting.filesystemobject")
set objts=objfso.opentextfile(server.mappath(counterfile),1,true)
if not objts.atendofstream then
counts=clng(objts.readline)
end if
counts=counts+1
objts.close
set objts=objfso.opentextfile(server.mappath(counterfile),2,true)
objts.writeline(counts)
objts.close
application.unlock
end function
%>