Quote:
|
Originally Posted by AssKoala Seeing as this is the C++ forum, that's just a stupid comment.
Only a fool would execute a separate application like ls and use a parser to extract the file size data for what can be done in 10 lines of code.
Nevermind that it's OS specific, succeptable to problems if ls's output changes, etc. So,  |
I never suggested writing a parser because the out put is already in human readable form. I believe in not reinventing the wheel.
But you are right this is a C++ forums, and it is OS specific, but then again you could run cygwin and it would still work.
TC