•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Legacy and Other Languages section within the Software Development category of DaniWeb, a massive community of 391,596 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,706 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Legacy and Other Languages advertiser:
Views: 9977 | Replies: 3
![]() |
•
•
Join Date: Sep 2005
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Hello, I am still a student and this is an assignment, I'm not neccessarily looking for a solution but simpy an answer to guide me in troubleshooting this logical (I think) problem.
I designed a simple program to seperate text data into usable fields in accordance with my assignment.
I was given a simple .dat file with 50 or so records in the following format:
Professor Frink Huntley 085205552223
I designed and subsequently wrote (in QBASIC) a program. I have solved most of the syntactical errors and now I am solving the logical ones and I am stuck on Error #62 "Input past end of file"
It is located in my getInput SUB, second line after importing variables.
LINE INPUT #1, InputRecord
I have searched this site and other sites within Google range but have not found anything relevant to my problem.
I will furnish more code upon any request, I guess I didn't here because it's still a work in progress and I'm stuck on this error.
Thanks for any reply.
I designed a simple program to seperate text data into usable fields in accordance with my assignment.
I was given a simple .dat file with 50 or so records in the following format:
Professor Frink Huntley 085205552223
I designed and subsequently wrote (in QBASIC) a program. I have solved most of the syntactical errors and now I am solving the logical ones and I am stuck on Error #62 "Input past end of file"
It is located in my getInput SUB, second line after importing variables.
LINE INPUT #1, InputRecord
I have searched this site and other sites within Google range but have not found anything relevant to my problem.
I will furnish more code upon any request, I guess I didn't here because it's still a work in progress and I'm stuck on this error.
Thanks for any reply.
•
•
Join Date: Sep 2005
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 0
Thank you for your response, I should have added a few things such as my little project program follows a standard form:
declare constants
declare variables
start program
CALL houseKeeping
CALL getInput
DO WHILE NOT EOF(1)
CALL mainLoop
LOOP
END
I have several SUB's. Obviously I have a housekeeping SUB and a getInput SUB. The houseKeeping SUB points to the location of the data file (which is a simple non-delimeted txt file with two empty lines for the eof marker.) The getInput SUB is were I'm haveing the problem.
When I run the program, it freezes on the first line of the getInput SUB:
LINE INPUT #1, InputRecord
Should I simply post the entire program with the data base? would that be of use to anyone? I've tried all other resources available to me but I am stuck here at this problem.
Thanks again.
declare constants
declare variables
start program
CALL houseKeeping
CALL getInput
DO WHILE NOT EOF(1)
CALL mainLoop
LOOP
END
I have several SUB's. Obviously I have a housekeeping SUB and a getInput SUB. The houseKeeping SUB points to the location of the data file (which is a simple non-delimeted txt file with two empty lines for the eof marker.) The getInput SUB is were I'm haveing the problem.
When I run the program, it freezes on the first line of the getInput SUB:
LINE INPUT #1, InputRecord
Should I simply post the entire program with the data base? would that be of use to anyone? I've tried all other resources available to me but I am stuck here at this problem.
Thanks again.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Legacy and Other Languages Marketplace
- Input past end of file? (Visual Basic 4 / 5 / 6)
- HijackThis error? (Viruses, Spyware and other Nasties)
- CPU and RAM always in a really high capacity (Viruses, Spyware and other Nasties)
- help me cleaning up my PC (Viruses, Spyware and other Nasties)
- Highjacked by greatsearch.biz (part deux) (Viruses, Spyware and other Nasties)
Other Threads in the Legacy and Other Languages Forum
- Previous Thread: matlab help : function, global, and ode45
- Next Thread: Experimenting with Boo


Linear Mode