keatonvictor
16th October 2007, 04:22 PM
Hi guys
I am building a MP3 Player using java, now I want to be able to run through a directory and add all the songs from that directory to an array. by that I men the full location such as
/songs/song1.mp3
/songs/song2.mp3
/songs/song3.mp3
/songs/song4.mp3
/songs/song5.mp3
However I want to stop it from adding any files that are not MP3
Is there a way I can search for particular files using java and then copy their corresponding URL ? i want this to work in windows as well.
I am building a MP3 Player using java, now I want to be able to run through a directory and add all the songs from that directory to an array. by that I men the full location such as
/songs/song1.mp3
/songs/song2.mp3
/songs/song3.mp3
/songs/song4.mp3
/songs/song5.mp3
However I want to stop it from adding any files that are not MP3
Is there a way I can search for particular files using java and then copy their corresponding URL ? i want this to work in windows as well.