Project: to read the files in a directory, extract the image files, sort by name, and create an index.
1: How do I get a list of files in a directory?
Can I use strstr() to seperate the .gif and .jpg files and then again to sort the out if I name the files using a convention like "thumbnail_file1.gif, image_file1.jpg"