4 ms·
I don't know, I was just asking for clarification to the question, because you did not provide any information on the distinction of the two methods in the ques
by humblebee 8y ago
I don't know, I was just asking for clarification to the question, because you did not provide any information on the distinction of the two methods in the question "why do I need to find the first file with ...".
Your reply here could of been a great reply to the original question.
- magicalhippo 8y agoI misunderstood the poster I was replying to. To me it sounded like he wanted a singular call to be able to iterate over all the files in the directory. I then assumed you proposed something similar with your FindFile call, and I didn't and still don't see how to do that in a clean way, hence asking how you would imagine it working. In a reply the OP clarified that it was the fact that FindFirstFile does two things (initializing the handle, and getting the first result if any), rather than cleanly separating the handle initialization from getting the results. This is different, and a point I can agree with.