Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help me write this program in C# You have a program called ListFilesInDirectory. It takes one input that is a directory path. I want

Please help me write this program in C#

You have a program called ListFilesInDirectory. It takes one input that is a directory path. I want to be able to call this code like this: ListFilesInDirectory c:\some andom\path

Given the directory as an input, I want the program to print to screen all the names of all the files and directories in that directory and all its children.

You have the following pre-written code to work with:

Directory.List(string path) returns a list of file system objects that are direct children of the given path.

Each file system object has a .Type and .Name value.

.Type is either "file" or "directory".

.Name is the full path of the file or directory.

Please Help me out, explanations helps a ton too.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions

Question

Compare and contrast glass escalator and glass ceiling.

Answered: 1 week ago

Question

Know the three main dimensions of the service environment.

Answered: 1 week ago