I want to extract just mp3 files from a playlist using FSO. I thought this would do it, but it returns all lines. Any clue?
<%
dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Const FSOForReading = 1
Dim objTextStream
Set objTextStream = objFSO.OpenTextFile("c:\Playlist.m3u", FSOForReading)
Do while not objTextStream.AtEndOfStream
if instr(objTextStream.ReadLine, ".mp3") then
Response.Write objTextStream.ReadLine & "<br>"
end if
Loop
objTextStream.Close
set objTextStream = Nothing
%>