Currently I have a directory which will have a varying number of files. They are saved as
2.csv, 10.csv, 14.csv, 30.csv, etc.
I also have a file which I read into an array that has these file numbers, for example,
$filenumber[0]=2;
$filenumber[1]=10;
$filenumber[2]=14;
In this case I would like to do some additional work to 30.csv within the directory because the file number 30 is not within my array $filenumber.
Would anyone have any suggestions of how I can iterate through $filenumber and compare it's number to see if that number is a file within the directory? I want to ultimately do some more work on the file in the directory that is not within the array $filenumber.
I appreciate the help. Thanks 🙂