So i'm using the simple
ImgFilesCount = ImgDirInfo.GetFiles("*.jpg").Length;
to figure out how many files are in a dir. But I need it to only count files that have exactly 26 characters in the file name. I tried
ImgFilesCount = ImgDirInfo.GetFiles("?????????????????????????.jpg").Length;
But it didn't work. Is the only option to do a foreach loop and check each filename and increment the counter? I have a feeling linq can probably do this with a .Where statement but I don't know any Linq.