[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

RE: Reading directories and files

On Monday, January 29, 2001 6:35 PM, Rajeev Rao [SMTP:rbsrao@xxxxxxxxxxx]
| Hello,
|    How does one contents of the current (or any) directory using C.
| How can I traverse the directory tree from a C program.

See opendir and readdir functions.

"info libc"

| If I locate a file in a given directory(after a random set of
| traversals) is 
| there a way to obtain its absolute path in the form of a string?

I don't understand this. If you can locate a file, you should know the
directory ;-).
Prashant TR <tr@xxxxxxxxxx>
Web: http://www.midpec.com/

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.