I am developing a MP3 player in C# using WPF.
I have successfully added the play,pause,stop,next,previous and add file to the list functionality.
But every time i open the player, i have to manually add files using the add file button.
What i want is that, just like iTunes, on opening the player, all mp3 files should be loaded from a folder and shown in the 'listbox'. (Like a preloaded music library)
I do not intend to use any database.
This can be done using CSV file. I tried with the code specified here How to create CSV Excel file C#? but could not get it work correctly. (There were lots of problems and hence i am not specifying it here)
Any help is appreciated in this direction. I am open to new approaches if it solves my problem.
P.S. I also want to add the functionality of making custom playlist from this music library. More help in this direction is also welcome.