"run time error 53" file not found

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Sep 2007
Posts: 8
Reputation: leovicAustria is an unknown quantity at this point 
Solved Threads: 0
leovicAustria leovicAustria is offline Offline
Newbie Poster

"run time error 53" file not found

 
0
  #1
Sep 27th, 2007
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
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,125
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 129
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: "run time error 53" file not found

 
0
  #2
Sep 28th, 2007
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.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Sep 2007
Posts: 8
Reputation: leovicAustria is an unknown quantity at this point 
Solved Threads: 0
leovicAustria leovicAustria is offline Offline
Newbie Poster

Re: "run time error 53" file not found

 
0
  #3
Sep 28th, 2007
ok sir, thanks.god bless
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC