question archive Given the directory structure: test/

Given the directory structure: test/

Subject:Computer SciencePrice: Bought3

Given the directory structure:

test/

.

..

a.txt

b.txt

c.txt

test/adir/

test/ddir

test/ddir/

f.txt

test/adir/

d.txt

test/adir/bdir/

e.txt

* Use a stack to walk through the given directory and all of its subdirectories, printing them as you descend:

test/

test/adir

test/adir/bdir

test/ddir

 

I understand to actually having the code working properly you first need write the code to able to open a directory and read it, so if it makes it easier I'm fine with just the part of the code uses a stack to walk though a given directory and its' subdirectories as you descend. If you can, can you write the code in c#.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions