| | |
"run time error 53" file not found
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Sep 2007
Posts: 8
Reputation:
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
![]() |
Similar Threads
- Run-time error '5' (Windows NT / 2000 / XP)
- Run-time error '384' (IT Professionals' Lounge)
- Run time error (Windows NT / 2000 / XP)
- 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, do you wish to debug?" (Web Browsers)
- Run-Time Error..? (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: notepad manipulation
- Next Thread: calender help need
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age append application basic beginner birth bmp calculator cd cells.find click client code college column component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






