1
13gurpreetsingh
hi friends,
my program demands that we need to list the information in all the
files present in a directory ,say xxxx and the files present in all
the subdirectories in this xxxx directory. please help me how can we
achieve this.
My thought:If there is any command which could give me atleast the
list of all the subdirectories within a particular directory( in one
go or one at a time) then we can store all those names in an array of
strings and change directory repeatidely( recursively); please tell me
if this approach is correct and whether such a command is available in
c/c++
my program demands that we need to list the information in all the
files present in a directory ,say xxxx and the files present in all
the subdirectories in this xxxx directory. please help me how can we
achieve this.
My thought:If there is any command which could give me atleast the
list of all the subdirectories within a particular directory( in one
go or one at a time) then we can store all those names in an array of
strings and change directory repeatidely( recursively); please tell me
if this approach is correct and whether such a command is available in
c/c++