How to load all files in a particular folder?

edited August 2015 in How To...

I need to be able to load all the .jpg files in a given directory into a PImage.

So for example my directory is D:/Frames and there are multiple images saved in the directory with names ranging from "scene00001.jpg", "scene00006.jpg" and so on upto "scene00321.jpg".

Every time the number of images will be different.

So I want to be able to save all the images in the folder D:/Frames into an array of PImage[] img.

Is it possible to do this?

If yes could you help me with the code?

Sign In or Register to comment.