Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6

Thread: 800a003e error

  1. #1
    Regular Coder
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    435
    Thanks
    1
    Thanked 0 Times in 0 Posts

    800a003e error

    Microsoft VBScript runtime error '800a003e'

    Input past end of file

    /scrow1er/data/highscores.asp, line 15

    here's the code:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>High Scores</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="../crystals.css" rel="stylesheet" type="text/css">
    </head>
    
    <body>
    <p>The people below are true champions. They scored 100% in the Crystal Mania quiz! We honour them.</p>
    <p></p>
    <%
    Set champion = CreateObject("Scripting.FileSystemObject")
    Set championlist = champion.OpenTextFile(Server.MapPath("champions.txt"))
    set thefinallist = championlist.ReadAll
    champion.Close
    Set champion=nothing
    Set championlist=nothing
    response.write(thefinallist) 
    %></body>
    </html>
    Line 15:
    Code:
    set thefinallist = championslist.ReadAll

  • #2
    Regular Coder
    Join Date
    Jul 2003
    Location
    Ontario, Canada
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My guess is that there's either
    a) Nothing in the file or
    b) The last line in the file ends at the end of the line (IE, there is no Carriage Return (or ENTER) after the last name in the file.)

    That's what I think of off hand

  • #3
    Regular Coder
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    435
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Well you'd be right, both are true for me

  • #4
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #5
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,068
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Set champion = CreateObject("Scripting.FileSystemObject")
    Set championlist = champion.OpenTextFile(Server.MapPath("champions.txt"))
    set thefinallist = championlist.ReadAll
    champion.Close
    You keep closing the FSO reference not the File reference

    http://www.codingforums.com/showthre...t=championlist
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #6
    Regular Coder
    Join Date
    Jul 2003
    Location
    New Zealand
    Posts
    435
    Thanks
    1
    Thanked 0 Times in 0 Posts
    huh? now I get an error saying invalid string something.. then it says ": ['(my file content here']"


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •