M
Mike Joseph
I have a data file that was produced in MicroSoft Access.
It's a table that was exported as a fixed format,
sequential access ASCII file. It contains over 80,000
records. Basically, all the stats for every player in
Major League Baseball history in alphabetical order and
then by each year they played. I want to take this data
and display to the user the career totals for each player.
I don't seem to understand how to use StreamReader and the
Readling method. When I write out what I want to do with
the program either thru flowchart or just logical doodles
on some paper it seems pretty easy. I just can't get seem
to get it started by reading the file.
My idea was to read the data into an array. Each player
would occupy a row of the array and every time i read in a
new record for that player it would just add the new
yearly stats to the previous total to get the overall
total. So the finished array would have 15,000 or so rows
( one for each player ) and about 15 or so collums with
their career stats. Then it would be easy to display them
when the user selects a player. I just can;t figure out
how to get the data into an array in the order I'd want it
to be in :/
-Mike
It's a table that was exported as a fixed format,
sequential access ASCII file. It contains over 80,000
records. Basically, all the stats for every player in
Major League Baseball history in alphabetical order and
then by each year they played. I want to take this data
and display to the user the career totals for each player.
I don't seem to understand how to use StreamReader and the
Readling method. When I write out what I want to do with
the program either thru flowchart or just logical doodles
on some paper it seems pretty easy. I just can't get seem
to get it started by reading the file.
My idea was to read the data into an array. Each player
would occupy a row of the array and every time i read in a
new record for that player it would just add the new
yearly stats to the previous total to get the overall
total. So the finished array would have 15,000 or so rows
( one for each player ) and about 15 or so collums with
their career stats. Then it would be easy to display them
when the user selects a player. I just can;t figure out
how to get the data into an array in the order I'd want it
to be in :/
-Mike