- #1
- 760
- 2
Here's the situation:
I'm running over a few thousand files, some of which may have already been processed. In order to decide if a file has to be processed, I check if the corresponding output file exists.
The problem:
I tried using FILE *f = fopen(<filename>,"r"), and test for f!=0; however, it takes a long time to just open the files.
Any suggestions?
Edit: FILE instead of TFILE.
I'm running over a few thousand files, some of which may have already been processed. In order to decide if a file has to be processed, I check if the corresponding output file exists.
The problem:
I tried using FILE *f = fopen(<filename>,"r"), and test for f!=0; however, it takes a long time to just open the files.
Any suggestions?
Edit: FILE instead of TFILE.
Last edited: