ntfw (new file tree walk) question

B

ben.lemasurier

Hey everyone,

I am making use of ntfw() in a program of mind to find a file on the
hard drive. Currently my application only prints the name of the file
if it finds it. I would like it to show the path to the file as well.
Is there a way to have ntfw() report the current directory it is in?

I hope I am being clear, if not please let me know and I can try to
clairify.

Thanks!

Ben
 
K

Keith Thompson

I am making use of ntfw() in a program of mind to find a file on the
hard drive. Currently my application only prints the name of the file
if it finds it. I would like it to show the path to the file as well.
Is there a way to have ntfw() report the current directory it is in?

Standard C has no facilities for dealing with directories. ntfw()
appears to be some non-standard function; personally, I had never
heard of it until now. You'll need to post in a newsgroup specific to
your system.

....

(A little Googling shows that the function is called nftw(), not
ntfw(). comp.unix.programmer is probably the best place to ask about
it.)
 
B

ben.lemasurier

Alright.. thanks anyways guys.

Can anyone point me in the right direction for file searching using
standard C?

thanks again,

Ben
 
A

A. Sinan Unur

(e-mail address removed) wrote in @f14g2000cwb.googlegroups.com:
Alright.. thanks anyways guys.

Can anyone point me in the right direction for file searching using
standard C?

There are no such facilities. You'll need to use platform dependent
libraries/facilities.

Sinan
 
L

Lawrence Kirby

Alright.. thanks anyways guys.

Can anyone point me in the right direction for file searching using
standard C?

C has no concept of file searching or even directories. A good newsgroup
to discuss the POSIX facilities for these is comp.unix.programmer.

Lawrence
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top