generating an array which contains filenames of a dir
ok i have this dir called "images"
in it contain .jpg and .txt files
something like:
abc.txt
def.txt
qwe.jpg
kwe.jpg
now what i need to do is to enter .jpg only into my array such that the resultant array is
array_of_jpg_filenames[0] = qwe.jpg
array_of_jpg_filenames[1] = kwe.jpg
anyone knows how can i do that?
thanks