What is a better way to save the items of the playlist?
<p>In my music player if you add songs to the playlist , program first creates a directory by the name of playlist and then a <code>.txt</code> file. In this file , it adds the path or name of the song added in the playlist.Each entry is on a new line.So if i create a playlist named "Ghazals" and add 100 songs into that playlist 100 new lines are inserted in the txt file under the folder named "Ghazals".</p>

<p>If there are 50 playlists there will be 50 folders and in each folder there will be txt files that has the list of songs. </p>

<p>For sure,this is not the right way . What should i do to avoid this <em>(the cluster)</em> ? For example how do players like "window media player" save their playlists ?</p>
