anyone know how i can use the if() statement with the file extension so that i can have my code do certain things with certain file names while reading a dir.
so
(just an example to show you what i want, i know its wrong)
if(ext == .gif){
show .gif file names here
}else{
all others go here
}
how could i do something like that?