ok yes i know this thread is old but i think i just got it so it makes sense

i have to test to make sure the elementsize is less than the arraysize followed by making sure i can still read in the file because order matters like any expression and it might read in something outside of its bounds causing said silent error or other undefinedness if it were to read the file first instead of making sure it was in the correct bounds

however you could terminate and there could sitll be more files to be read but elementsize increments past the arraysize and kills the loop so THEN you have to make sure that arraysize and elementsize dont equal.

yes just figured id post that lol