[求助]这里是一段读取记事本中的数,来统计访问数的代码。帮我看看哪里出错了,谢谢
<%Application.Lock
Set fs=Server.CreateObject("Scripting.FileSystemObject")
counter_file=Server.MapPath("/counter.txt")
Set txt=fs.OpenTextFile(counter_file)
Application("counter")=txt.ReadLine
txt.Close
Application("counter")=Application("counter")+1
Set txt=fs.CreateTextFile(counter_file,true)
txt.WriteLine(Application("counter"))
txt.Close
Application.UnLock
%>