我在 Raspberry Pi 4 上用 for 循环里的 fopen 读取某个目录中的文件,总共有 1200 多个。循环执行到一定次数后,fopen 就无法再读取下一个文件了。应该怎么解决这个问题?
On a Raspberry Pi 4 I use fopen inside a for loop to read files from a particular directory, over 1200 of them. Once the loop has run enough times, fopen stops being able to read another file. What should I do about this?