Files and Directories

Exercise: Working with directories

Goal
  1. Create an instance of DirectoryInfo, named directory for the path .\.
  2. Get the child directories as an array of DirectoryInfo and assign them to a new variable named children.
  3. Using a for loop, enumerate through the items of children and write each item's Name to the console usingWriteLine.
Page 17 of 20