Believe it or not, sometimes some of us just want to look for a particular file so we can open it and read its contents.
I need a crossplatform function to list a directory and then do something on the files inside (delete all files from there or copy files to another directory).
However, none of the C standard library, C++ standard library or POSIX have a function for copying a file.
Try reading the thread next time.
Actually, since we are dragging in large unnecessary deps, perhaps we should drag in wxWidgets and use wxFile::read...
Oh teh noes, however shall my application (which, let's not forget, is running on a pc, not some embedded device or console) cope with adding an extra 135kb dll?
boost.filesystem is a small library that's purpose built for dealing with exactly the kind of job the OP wants to do. So you can drop the ridiculous strawman.
if you think programming is like sex, you probably haven't done much of either.-------------- - capn_midnight