On 11 Oct 2006 11:54:30 -0700, in comp.lang.c , "Frank B."
<ke*********@gmail.comwrote:
>Yes it does.
Presumably you mean the C language. Please don't top-post in CLC, it
makes posts meaningless. And I'm afraid you're wrong, as C doesn't
have any concept of directories - thats a feature of your OS.
I'm trying to write a program in C which looks into a
directory and copies all the file names in that directory into a file.
The only C way to do that is to use system() and invoke whatever
commadn your OS would use to list the objects in the folder and put
the output into a file.
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan