944,079 Members | Top Members by Rank

Ad:
Sep 27th, 2007
0

"run time error 53" file not found

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
leovicAustria is offline Offline
8 posts
since Sep 2007
Sep 28th, 2007
0

Re: "run time error 53" file not found

The error message itself suggests the reason of error. U need to specify complete path of the file. Else u can store the file in the path of the exe and specify App.path in the code to avoid this error message.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Sep 28th, 2007
0

Re: "run time error 53" file not found

ok sir, thanks.god bless
Reputation Points: 10
Solved Threads: 0
Newbie Poster
leovicAustria is offline Offline
8 posts
since Sep 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: notepad manipulation
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: calender help need





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC