Opening winamp playlists?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Opening winamp playlists?

  1. #1
    David Raymont Guest

    Opening winamp playlists?


    How do i open winamp play lists into a list box??
    I've managed to write a code for Sonique play lists.

    Thanx if you can help.

    Here is an example of a winamp playlist;

    #EXTM3U
    #EXTINF:512,(don mclean) - american pie
    Incoming\(don mclean) - american pie.mp3
    #EXTINF:278,Eric Clapton - Tears in heaven
    Other\Eric Clapton - Tears in heaven.mp3
    #EXTINF:334,REM - Everybody Hurts (Unplugged)
    RnB\REM - Everybody Hurts (Unplugged).mp3
    #EXTINF:264,Wyvclef Jean feat Lauryn Hill - Gunpowder
    Albums\Wyclef Jean - The Carnival\19 - Gunpowder (feat Lauryn Hill).mp3
    #EXTINF:277,Roberta Flack - Killing Me Softly
    Incoming\Roberta Flack - Killing Me Softly.mp3

  2. #2
    Sunny Guest

    Re: Opening winamp playlists?


    David,

    This process is probably very long, but this is what I'll probably do.

    I would load the entire contents of the file into one variable, then search
    for one "Chr$(13) & Chr$(10)"s (new line) then extract everything after it.
    Trim it. With the remaining string, search for the first "," and extract
    everything after it. Then extract upto the next "Chr$(13) & Chr$(10)" to
    a new string. And just to be sure, trim the new string.

    If I'm right, all the above to take out "(don mclean) - american pie"

    I know there should be a better way but its the first one that comes to mind.
    As you can see it is a cumbersome process so I didn't come up with the code
    so soon. Hope this helps.

    Sunny



    "David Raymont" <DRR104@hotmail.com> wrote:
    >
    >How do i open winamp play lists into a list box??
    >I've managed to write a code for Sonique play lists.
    >
    >Thanx if you can help.
    >
    >Here is an example of a winamp playlist;
    >
    >#EXTM3U
    >#EXTINF:512,(don mclean) - american pie
    >Incoming\(don mclean) - american pie.mp3
    >#EXTINF:278,Eric Clapton - Tears in heaven
    >Other\Eric Clapton - Tears in heaven.mp3
    >#EXTINF:334,REM - Everybody Hurts (Unplugged)
    >RnB\REM - Everybody Hurts (Unplugged).mp3
    >#EXTINF:264,Wyvclef Jean feat Lauryn Hill - Gunpowder
    >Albums\Wyclef Jean - The Carnival\19 - Gunpowder (feat Lauryn Hill).mp3
    >#EXTINF:277,Roberta Flack - Killing Me Softly
    >Incoming\Roberta Flack - Killing Me Softly.mp3



  3. #3
    David Raymont Guest

    Re: Opening winamp playlists?


    Thanx,

    Do you mind writing out the full code?
    Oh, and if you opened the play list in Notepad it all comes out as two lines,
    does that make a diffence?

    Thanx again,
    ---David---

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center