Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - input past end of file
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

input past end of file

 Post Reply Post Reply
Author
cuedog View Drop Down
Groupie
Groupie
Avatar

Joined: 29 December 2001
Location: United States
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote cuedog Quote  Post ReplyReply Direct Link To This Post Topic: input past end of file
    Posted: 04 August 2003 at 6:51pm
I am receiving this error.
Category = Microsoft VBScript runtime
Number = 0x800A003E
Description = Input past end of file

Here is the code

<%
Dim fsoObject                   'File System Object
Dim tsObject                    'Text Stream Object
Dim filObject                     'File Object
Dim lngVisitorNumber          'Holds the visitor number
Dim intWriteDigitLoopCount 'Loop counter to display the graphical hit count
Set fsoObject = Server.CreateObject("Scripting.FileSystemObject")
Set filObject = fsoObject.GetFile(Server.MapPath("/hits.txt"))
Set tsObject = filObject.OpenAsTextStream
lngVisitorNumber = CLng(tsObject.ReadAll)
lngVisitorNumber = lngVisitorNumber + 1
Set tsObject = fsoObject.CreateTextFile(Server.MapPath("/hits.txt"))
tsObject.Write CStr(lngVisitorNumber)
Set fsoObject = Nothing
Set tsObject = Nothing
Set filObject = Nothing
%>


Here is the line with the error
lngVisitorNumber = CLng(tsObject.ReadAll)

There hasn't been any error on this in over 200,000 hits. What could be the problem?

Back to Top
KCWebMonkey View Drop Down
Senior Member
Senior Member
Avatar
Go Chiefs!

Joined: 21 June 2002
Status: Offline
Points: 1319
Post Options Post Options   Thanks (0) Thanks(0)   Quote KCWebMonkey Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2003 at 9:27pm
If this was already working and you haven't changed anything, have you checked your web host to see if they changed anything? (directory permissions maybe?)
Back to Top
cuedog View Drop Down
Groupie
Groupie
Avatar

Joined: 29 December 2001
Location: United States
Status: Offline
Points: 138
Post Options Post Options   Thanks (0) Thanks(0)   Quote cuedog Quote  Post ReplyReply Direct Link To This Post Posted: 04 August 2003 at 9:44pm
Thanks for the reply!No, I haven't checked my webhost yet. It's odd though. There has been no error then there was an error on 3 clicks in a row then there was no errors again. All this without any changes. Next thing I will check is my webhost status.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.