Im writing a program that has to open up all the files in a directory and perform a test on their content. I need a function that will first give me an array with all the files in said directory. I don't want to perform the function on the files while I get all the filenames, I just want a function that will throw the filenames in an array so I can do stuff with them later.