Objective: To become familiar
with file processing.
Create a VB program to read from a text file an unknown number of golfer names and golf scores from a file called a:/golfer.txt. Hint: to input a name and a value from a file, the Input statement should be of the form:
Input #n, variable1, variable2
The data is entered in the file with the name and the score on the same line separated
by a comma.
These names and scores should be loaded into a list box and the number of golfers and average of all scores computed and displayed in textboxes with appropriate labels.
The text file is available
here. Right click the
link and do Save Link As... or Save Target As...
|