I have a question regarding file system I/O. I am wanting to open different
directories from within a C program and eventually open these files for
writing. Is there a precoded function to open a directory and return its
contents? I am currently using a 'jerry-rig' approach.
system("ls -al > somefile.dat")
fopen(blah......)
Is this the only method of doing this?
btw: I am writing this code on an IRIX machine. (6.2)
Thanks,
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Chuck Carson    | 573.884.7161       | www.chuckster.net  |
| System Analyst  | Digital Missourian | chuck@digmo.org    |
| System Admin    | Socket Internet IP | chuck@socket.net   |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST