We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › recognize how many files are in a folder
Page Index Toggle Pages: 1
recognize how many files are in a folder (Read 455 times)
recognize how many files are in a folder
Jun 14th, 2009, 11:08am
 
Hi

I want to write a program, that among other things should load the latest jpeg file in a specific folder. so if there are several numbered files it should only load the one with the highest number.
but how can i check how many files there are, or which is the highest number. if i just try to load pictures as long as there is one to load it gives an error when it tries to load a number that doesn't exist yet...

any ideas?
Re: recognize how many files are in a folder
Reply #1 - Jun 14th, 2009, 2:15pm
 
I would give the same advice as in loading files from folder... Also found in reading in names of image files an example of usage.
Page Index Toggle Pages: 1