03-01-2005, 11:35 PM
Here's a portion of code for a game I'm making. I keep getting an error "input past end of file"
Code:
LOAD:
PRINT "not done yet"
CHOICE = 0
OPEN "fballsav.txt" FOR INPUT AS #1
WHILE NOT EOF(1)
INPUT #1, qb, kicker, seasons, TOTALWON, TOTALLOST, WON, LOST, NAME$, TRAIN
WEND
CLOSE
RETURN
SAVE:
PRINT "NOT DONE YET"
CHOICE = 0
OPEN "fballsav.txt" FOR OUTPUT AS #1
PRINT #1, qb, kicker, seasons, TOTALWON, TOTALLOST, WON, LOST, NAME$, TRAIN
CLOSE
RETURN
Not yet Snake! It's not over yet!