%
dim visitors,myplace,vwrite,MAXChannalCount
myplace = 4
whichfile=server.mappath("../count/2.txt")
Set fs = CreateObject("Scripting.FileSystemObject")
Set thisfile = fs.OpenTextFile(whichfile)
visitors=Split(trim(thisfile.readline),"::")
MAXChannalCount = Ubound(visitors)
thisfile.close
'response.write visitors(myplace)
visitors(0)=visitors(0)+1
visitors(myplace)=visitors(myplace)+1
Set out=fs.CreateTextFile(whichfile)
vwrite = ""
for i = 0 to MAXChannalCount - 1
vwrite =vwrite & visitors(i) & "::"
next
vwrite =vwrite & visitors(MAXChannalCount)
out.WriteLine(vwrite)
out.close
set fs=nothing %>
展览频道/上海青年电子社区