10.13. Exercise: Display scores

Read in a file where on each line there is a name and a score  
with a comma between them. 
Print them sorted based on name.
Then also print sorted based on score.

Example 10-3. examples/hashes/score_data.txt

Foo,23
Bar,70
Baz,92
Bozo,17
Gozo,52
Dardon,20
Mekodra,23

If you are interested in on-site trainings by the author, please contact me directly.

Online courses:

Would you like to get
updated when I publish
the next article?

Follow me:

Google Plus Twitter RSS feed