DirectoryInfo dir = new DirectoryInfo(\".\"); foreach (FileInfo fil in dir.GetFi
ID: 3773292 • Letter: D
Question
DirectoryInfo dir = new DirectoryInfo(".");
foreach (FileInfo fil in dir.GetFiles("*.*"))
Console.WriteLine(fil.Name);
the names of all files in the current directory
the names of all subdirectories of the root directory
the contents of all files in the root directory
the names of all subdirectories of the current directory
DirectoryInfo dir = new DirectoryInfo(".");
foreach (FileInfo fil in dir.GetFiles("*.*"))
Console.WriteLine(fil.Name);
Explanation / Answer
1) the names of all files in the current directory
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.