Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open File

Status
Not open for further replies.

rick32

Programmer
Feb 15, 2001
5
0
0
US
I need help in openning a file (grades.txt) where I could put them in rows and columns ? so, I could compute average grade per student,average for all students and average per test (T1,T2,T3)

Name T1 T2 T3

Mark 98 97 96
James 99 95 91
Robert 90 92 93
Kevin 99 91 90
Ed 98 90 94

:-(
 
Dim Average as Double
Dim A$ as String

Open "Grades.txt" For Input As #1
Do until EOF(1)
Line Input #1, A$
Average = ParseAndAverage(A$)
Loop

Then write a function to parse and return the average of each A$.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top