How to use fstream reading the information

For example

Jason 500
Paul 349
David 400


should i use 2 dimensional array to read those data?
could you provide some codes / hints to deal with the problems? Thanks you
The types values are different (string and int) so you can't use a 2d array of either. If you know how, you can write a struct and use an array of that. If you don't, the simplest way would be to use two arrays.
Topic archived. No new replies allowed.