A
Andrew
Hello,
I am trying to find a way to take the contents of a directory and
write it into a file. I have a directory that has several hundred text
files, and I want to create a file containing all of the names of those
files. I can get the contents of the directory onto the screen using
system("dir"); But I have not been able to get this data into a file.
I understand that stdout is a pointer to a file, and so I should be
able to open and read this file without physically viewing the screen.
Anyway, any ideas? Thanks in advance.
andrew
I am trying to find a way to take the contents of a directory and
write it into a file. I have a directory that has several hundred text
files, and I want to create a file containing all of the names of those
files. I can get the contents of the directory onto the screen using
system("dir"); But I have not been able to get this data into a file.
I understand that stdout is a pointer to a file, and so I should be
able to open and read this file without physically viewing the screen.
Anyway, any ideas? Thanks in advance.
andrew