C++ Iterating through files in a directory: Is it bad practice? : <p>The question has been asked many times here: "How do I iterate through files in a directory in c++?"</p>

<p>I've seen the responses, typically suggesting to use an external library (usually boost filesystem) to handle this and the OS differences in implementation.</p>

<p>My question is: why? Why is this so difficult?
I'm new to the language and can't help but feel that I'm trying to overstep the bounds of idiomatic c++.</p>

<p>Is it more appropriate to implement a single file solution and use another language to implement the file iteration?</p>
