The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
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?
Code:
<%
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
%>