Sorry, I combined a few methods that I use to come up with the above result, but is essentially the same as the other link, but the other is a little more concise. One thing to remember is to use the correct IPlayListIO for the file ext:
Code:
IPlayListIO io;
switch (playlistfileextension)
{
case ".m3u":
io = new PlayListM3uIO();
break;
case ".pls":
io = new PlayListPLSIO();
break;
case ".b4s":
io = new PlayListB4sIO();
break;
case ".wpl":
io = new PlayListWPLIO();
break;
}