I am having a problem with a simple counter that I found (only for test purposed) at http://www.tcp-ip.com/pages/128.asp. The counter works perfectly the first time it is called from the page in which it is included on, but when the page is called again...a Permission Denied error occurs at the following line from withing the code:<BR><BR>set b = fs.CreateTextFile (CounterFile, 1, 0)<BR><BR>Here is the entire code:<BR><BR>&#060;%<BR>CounterFile = Server.MapPath ("/") & "usercount.cnt"<BR>Set fs = CreateObject("Scripting.FileSystemObject")<BR>On Error Resume Next<BR>Set a = fs.OpenTextFile(CounterFile, 1, 0, 0)<BR>usercnt = a.Readline<BR>set fs = Nothing<BR>usercnt = FormatNumber(usercnt + 1,0)<BR>Set fs = CreateObject("Scripting.FileSystemObject")<BR>set b = fs.CreateTextFile (CounterFile, 1, 0)<BR>b.WriteLine usercnt<BR>Set b = Nothing<BR>Response.Write usercnt<BR>&#037;&#062;