 |
 |
 |
 |
 |
 |
 |
<%
countfile=server.mappath("counter/counter.txt")
Set fs=CreateObject("Scripting.FileSystemObject")
Set thisfile=fs.OpenTextFile(countfile)
visitors=thisfile.readline
thisfile.close
if Session("Count")<>True then
visitors=CLng(visitors)+1
visitors=CStr(visitors)
end if
countlen=len(visitors)
for i=1 to 7-countlen
response.write" "
next
for i=1 to countlen
response.write" "
next
Set thisfile=fs.CreateTextFile(countfile)
thisfile.WriteLine(visitors)
thisfile.close
set fs=nothing
Session("Count")=True
%>
|