Opening files in a directory

I need to write a code to open a directory entered at the command prompt that finds all the files of one type(mp3) in the directory. What functions should I be looking at to do this?
Topic archived. No new replies allowed.