Valhalla Legends Archive

Programming => General Programming => Topic started by: Crypticflare on December 24, 2003, 12:45 PM

Title: Converting a playlist into a text file.
Post by: Crypticflare on December 24, 2003, 12:45 PM
I've been experimenting some stuff with Winamp 2.0 series, what I'd like to do is take the playlist file, and parse it somehow and add all the song names and titles to a text file so i can read from it. I'd like to do this myself, but does anyone have an Idea how I'd start this out? I've checked PSCode and I've seen one program that exports the playlist into a .HTML file. I don't need something that exclusive. Much help appreciated

Thanks!

[Edit] The language would be Visual Basic[/edit]

Title: Re:Converting a playlist into a text file.
Post by: warz on December 24, 2003, 07:50 PM
Just look at how it exports it to an HTML file, and change the file type?
Title: Re:Converting a playlist into a text file.
Post by: K on December 24, 2003, 10:33 PM
Quote from: Crypticflare on December 24, 2003, 12:45 PM
I've been experimenting some stuff with Winamp 2.0 series, what I'd like to do is take the playlist file, and parse it somehow and add all the song names and titles to a text file so i can read from it. I'd like to do this myself, but does anyone have an Idea how I'd start this out? I've checked PSCode and I've seen one program that exports the playlist into a .HTML file. I don't need something that exclusive. Much help appreciated

Thanks!

[Edit] The language would be Visual Basic[/edit]



Open a playlist file (pls, m3u) with notepad.  If I recall correctly, the format should be pretty easy to see and parse.