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