•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 456,515 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,713 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 Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Views: 3893 | Replies: 2
![]() |
•
•
Join Date: Sep 2007
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
Guys please help me. I'll try to create a program which computes average for the entry of students grade through NOTEPAD..The file "Scores.txt" is in my desktop. If ill try to run my program this error appears: ""run time error 53" file not found". What should I do. Where will I put "scores.txt".This are my codes: Hope you can help me.
Private Sub Command1_Click()
Dim total As Integer, student As Integer, average As Single
Dim nom(1 To 4) As String, score(1 To 4) As Integer
Open "SCORES.TXT" For Input As #1
For student = 1 To 4
Input #1, nom(student), score(student)
Next student
Close #1
total = 0
For student = 1 To 4
total = total + score(student)
Next student
average = total / 4
MsgBox average
End Sub
Private Sub Command1_Click()
Dim total As Integer, student As Integer, average As Single
Dim nom(1 To 4) As String, score(1 To 4) As Integer
Open "SCORES.TXT" For Input As #1
For student = 1 To 4
Input #1, nom(student), score(student)
Next student
Close #1
total = 0
For student = 1 To 4
total = total + score(student)
Next student
average = total / 4
MsgBox average
End Sub
•
•
Join Date: Feb 2007
Location: Bangalore,India
Posts: 1,444
Reputation:
Rep Power: 4
Solved Threads: 87
![]() |
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Run-time error '384' (Techies' Lounge)
- Run time error (Windows NT / 2000 / XP / 2003)
- Internet Explore (Run Time Error) HELP!! (Web Browsers)
- Run-Time Error 424 (Visual Basic 4 / 5 / 6)
- Run-time Error when printing Array Contents. (C)
- Run-time error '5' (Windows NT / 2000 / XP / 2003)
- "Run time error, do you wish to debug?" (Web Browsers)
- Run-Time Error..? (Windows NT / 2000 / XP / 2003)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: notepad manipulation
- Next Thread: calender help need



Linear Mode