Storing Files in a Folder

Hello,

I am working on a project currently where I have about 80 images to use. I would like all of these images to be in an array. As this number of images makes the files look cluttered, I would like to be able to store them all in a file called images, however I am unsure of how to tell Processing to fetch things from another folder and examples I have seen are currently not helping me, but I could be looking for incorrect keywords.

Thanks,
Jack

1 Like

It depends on what OS you are using, you want to use a fully qualified file name see https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file for Windows. But say you are using Unix (linux MacOS) it’s bit easier eg “/home/user/my_images/image.png” substituting user etc as appropriate.

1 Like

I moreso meant, if I were to create a folder within the project folder and put all the images in there, how would I get processing to look into that folder when loading the images from the array?

1 Like