search or read img.jpg format text from directory

How can we read image of name img.jpg format in my directory?

I have many images in my directory . I have 1 to 20 image of name
"img1.jpg , img2.jpg , img3.jpg .... "

I want to read those image name one by one when user press l .

Could any one guide me how to do it .
thanks
Topic archived. No new replies allowed.