Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a history file for songs played on a jukebox. The syntax of the history
file is like follows:

Artist
Song Title
Album
Date Played

Example:

Him
Wicked Game (uk 2000)
Love Metal Archives Vol 1
12/12/2010
Noughties
Butterfly - Crazy Town
Volume 1 Disc 1
12/12/2010

This file consists of a couple of thousand lines(4 for each song).
What I want to get is the top ten songs for each month of the year.
I have no idea how to do this, so any ideas would be greatly appreciated.
Posted

1 solution

Keep a record of the number of times each song has been played and then analyse your file to select the top titles for the periods in question. Alternatively, if you keep all records as shown above, you need to scan the file and create the counts based on the dates of each entry.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900