Thread View: comp.os.msdos.programmer
2 messages
2 total messages
Started by gcp1815
Fri, 08 Jan 1993 22:47
findfirst() for nested directories
Author: gcp1815
Date: Fri, 08 Jan 1993 22:47
Date: Fri, 08 Jan 1993 22:47
9 lines
804 bytes
804 bytes
How do I recognize/list the directory headings nested within some arbitrary direcory? (using Borlandc C++). Findfirst() and findnext(), using them as per the "topic example" provided by borland, only seems to recognize filnames. Is there some ffblk.d_name to refer to? AUW:: (annonymous undergraduate worm)
Re: findfirst() for nested directories
Author: Stan Brown
Date: Sat, 09 Jan 1993 14:59
Date: Sat, 09 Jan 1993 14:59
15 lines
1084 bytes
1084 bytes
In article <009664F4.AC5D6C80@Msu.oscs.montana.edu> gcp1815@Msu.oscs.montana.edu writes: >How do I recognize/list the directory headings nested within >some arbitrary direcory? (using Borlandc C++). > Findfirst() and findnext(), using them as per the >"topic example" provided by borland, only seems to recognize >filnames. Is there some ffblk.d_name to refer to? Use FA_DIREC in the attribute argument. This will give you all normal files _and_ directories. Then you look at the attributes of each returned file to see whether it's a directory. -- Stan Brown, Oak Road Systems brown@Ncoast.ORG Cleveland, Ohio, USA "Life! Don't talk to me about life!"
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads