View Single Post
Old 08-22-2006, 07:34 AM   #11 (permalink)
toe_cutter
Code Monkey
 
Join Date: Aug 2002
Location: Boston, MA
Posts: 79
toe_cutter is on a distinguished road
Send a message via ICQ to toe_cutter Send a message via AIM to toe_cutter Send a message via Yahoo to toe_cutter
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
__________________
toe_cutter is offline   Reply With Quote