Files and Directories

Exercise: Enumerate files in a directory

Goal

Create a local variable named files which is a string array. You must use Directory.GetFiles to get all text files in the Droids and all child directories. Loop through each item using a foreach loop, writing each item to the console using WriteLine.

Page 9 of 20